/* Theme tokens. Light by default; dark via [data-theme="dark"] (set by useTheme) or the
   system preference before the app has set a theme. */
:root {
  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-2: #f1f3f7;
  --text: #1c2430;
  --muted: #5b6678;
  --line: #e2e6ee;
  --accent: #4f46e5;
  --accent-text: #ffffff;
  --accent-soft: #eef0ff;
  --now: #f59e0b;
  --now-soft: #fff4dc;
  --good: #15803d;
  --caution: #b45309;
  --neutral: #64748b;
  --danger: #b42318;
  --topic-career: #4f46e5;
  --topic-business: #0e7490;
  --topic-marriage: #be185d;
  --topic-relationships: #c2416b;
  --topic-finance: #15803d;
  --topic-property: #a16207;
  --topic-education: #7c3aed;
  --topic-foreign: #0369a1;
  --topic-children: #c2410c;
  --topic-family: #4d7c0f;
  --topic-spiritual: #6d28d9;
  --past: var(--muted);
  --ahead: var(--accent);
  --motif: var(--accent);
  --font-head: var(--font);
  --font-reading: var(--font);
  --scrim: rgb(15 18 23 / 0.35);
  --card-shadow: 0 1px 2px rgb(15 18 23 / 0.12);
  --header-shadow: 0 6px 12px -12px rgb(15 18 23 / 0.35);
  --avatar-text: #fff;
  --strong: #15803d;
  --moderate: #2563eb;
  --weak: #dc2626;
  --pill-text: #fff;
  --radius: 10px;
  --radius-sm: 6px;
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s6: 24px;
  --s8: 32px;
  --shadow: 0 12px 32px rgb(15 18 23 / 0.18);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", var(--font-script, "Noto Sans Devanagari"), sans-serif;
  /* a page in an Indian script uses that script's Noto font (loaded only for it: src/i18n/load.ts) */
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0f1217;
  --surface: #171b22;
  --surface-2: #1e232c;
  --text: #e6e9ef;
  --muted: #98a2b3;
  --line: #2a303b;
  --accent: #8b8cf8;
  --accent-text: #0f1217;
  --accent-soft: #23264a;
  --now: #fbbf24;
  --now-soft: #3a2f12;
  --good: #4ade80;
  --caution: #f59e0b;
  --neutral: #94a3b8;
  --danger: #f97066;
  --topic-career: #8b8cf8;
  --topic-business: #22d3ee;
  --topic-marriage: #f472b6;
  --topic-relationships: #f9a8d4;
  --topic-finance: #4ade80;
  --topic-property: #facc15;
  --topic-education: #c4b5fd;
  --topic-foreign: #38bdf8;
  --topic-children: #fb923c;
  --topic-family: #a3e635;
  --topic-spiritual: #a78bfa;
  --past: var(--muted);
  --ahead: var(--accent);
  --motif: var(--accent);
  --font-head: var(--font);
  --font-reading: var(--font);
  --scrim: rgb(15 18 23 / 0.35);
  --card-shadow: 0 1px 2px rgb(15 18 23 / 0.12);
  --header-shadow: 0 6px 12px -12px rgb(15 18 23 / 0.35);
  --avatar-text: #fff;
  --strong: #4ade80;
  --moderate: #60a5fa;
  --weak: #f87171;
  --pill-text: #0f1217;
  --shadow: 0 12px 32px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0f1217;
    --surface: #171b22;
    --surface-2: #1e232c;
    --text: #e6e9ef;
    --muted: #98a2b3;
    --line: #2a303b;
    --accent: #8b8cf8;
    --accent-text: #0f1217;
    --accent-soft: #23264a;
    --now: #fbbf24;
    --now-soft: #3a2f12;
    --good: #4ade80;
    --caution: #f59e0b;
    --neutral: #94a3b8;
    --danger: #f97066;
    --strong: #4ade80;
    --moderate: #60a5fa;
    --weak: #f87171;
    --pill-text: #0f1217;
    color-scheme: dark;
  }
}

/* Astrology themes (Menu → Theme). Light and Dark above stay as they are. */
:root[data-theme="warm"] {
  --bg: #fbf8f3;
  --surface: #fffdf9;
  --surface-2: #f6f0e6;
  --text: #2a2320;
  --muted: #76695e;
  --line: #ebe2d6;
  --accent: #5b3fc4;
  --accent-text: #ffffff;
  --accent-soft: #f0ebff;
  --now: #d97706;
  --now-soft: #fff3df;
  --good: #15803d;
  --caution: #b45309;
  --neutral: #6b6259;
  --danger: #b42318;
  --topic-career: #5b3fc4;
  --topic-business: #0e7490;
  --topic-marriage: #be185d;
  --topic-relationships: #c2416b;
  --topic-finance: #15803d;
  --topic-property: #a16207;
  --topic-education: #7c3aed;
  --topic-foreign: #0369a1;
  --topic-children: #c2410c;
  --topic-family: #4d7c0f;
  --topic-spiritual: #6d28d9;
  --shadow: 0 12px 32px rgb(60 40 20 / 0.18);
  --past: #7b8794;
  --ahead: #5b3fc4;
  --motif: #c9a227;
  --font-head: "Fraunces", Georgia, serif;
  --font-reading: var(--font);
  --scrim: rgb(42 35 32 / 0.35);
  --card-shadow: 0 1px 2px rgb(60 40 20 / 0.06);
  --header-shadow: 0 6px 12px -12px rgb(60 40 20 / 0.35);
  --avatar-text: #fff;
  --strong: #15803d;
  --moderate: #2563eb;
  --weak: #dc2626;
  --pill-text: #fff;
  color-scheme: light;
}

:root[data-theme="site"] { /* Warm with the public site's palette (site.css): parchment and gold */
  --bg: #fbf6ec;
  --surface: #ffffff;
  --surface-2: #f6ead2;
  --text: #2a2118;
  --muted: #6f6253;
  --line: #eadfca;
  --accent: #8a5c0f;
  --accent-text: #ffffff;
  --accent-soft: #f6ead2;
  --now: #d97706;
  --now-soft: #fff3df;
  --good: #15803d;
  --caution: #b45309;
  --neutral: #6b6259;
  --danger: #b42318;
  --topic-career: #8a5c0f;
  --topic-business: #0e7490;
  --topic-marriage: #be185d;
  --topic-relationships: #c2416b;
  --topic-finance: #15803d;
  --topic-property: #a16207;
  --topic-education: #7c3aed;
  --topic-foreign: #0369a1;
  --topic-children: #c2410c;
  --topic-family: #4d7c0f;
  --topic-spiritual: #6d28d9;
  --shadow: 0 12px 32px rgb(60 40 20 / 0.18);
  --past: #7b8794;
  --ahead: #8a5c0f;
  --motif: #a8741a;
  --font-head: "Fraunces", Georgia, serif;
  --font-reading: var(--font);
  --scrim: rgb(42 35 32 / 0.35);
  --card-shadow: 0 1px 2px rgb(60 40 20 / 0.06);
  --header-shadow: 0 6px 12px -12px rgb(60 40 20 / 0.35);
  --avatar-text: #fff;
  --strong: #15803d;
  --moderate: #2563eb;
  --weak: #dc2626;
  --pill-text: #fff;
  color-scheme: light;
}

:root[data-theme="night"] {
  --bg: #0d0b24;
  --surface: #19172f; /* 5% white over --bg, opaque so sheets and popovers hide what is under them */
  --surface-2: #201e35;
  --text: #ece6d6;
  --muted: #a59fc0;
  --line: rgb(212 175 55 / 0.25);
  --accent: #d4af37;
  --accent-text: #0d0b24;
  --accent-soft: rgb(212 175 55 / 0.15);
  --now: #f5c451;
  --now-soft: rgb(245 196 81 / 0.1);
  --good: #4ade80;
  --caution: #f59e0b;
  --neutral: #a59fc0;
  --danger: #f97066;
  --topic-career: #c4a5ff;
  --topic-business: #22d3ee;
  --topic-marriage: #f472b6;
  --topic-relationships: #f9a8d4;
  --topic-finance: #4ade80;
  --topic-property: #facc15;
  --topic-education: #a5b4fc;
  --topic-foreign: #38bdf8;
  --topic-children: #fb923c;
  --topic-family: #a3e635;
  --topic-spiritual: #d8b4fe;
  --shadow: 0 12px 32px rgb(0 0 0 / 0.55);
  --past: #8f9bc4;
  --ahead: #c4a5ff;
  --motif: #d4af37;
  --font-head: "Cinzel", "Cormorant Garamond", Georgia, serif;
  --font-reading: "Cormorant Garamond", Georgia, serif;
  --scrim: rgb(5 4 18 / 0.6);
  --card-shadow: 0 8px 24px rgb(0 0 0 / 0.35);
  --header-shadow: 0 6px 12px -12px rgb(0 0 0 / 0.6);
  --avatar-text: #0d0b24;
  --strong: #4ade80;
  --moderate: #60a5fa;
  --weak: #f87171;
  --pill-text: #0f1217;
  color-scheme: dark;
}

:root[data-theme="manuscript"] {
  --bg: #f3e3c3;
  --surface: #fbf0d9;
  --surface-2: #ecd5a8;
  --text: #4a1410;
  --muted: #7d4b2a;
  --line: #dcc08c;
  --accent: #8b1a1a;
  --accent-text: #fbf0d9;
  --accent-soft: #f0d2b0;
  --now: #d4880f;
  --now-soft: #fde6b8;
  --good: #2f6b3a;
  --caution: #9a5a00;
  --neutral: #6b5a4a;
  --danger: #9b1c1c;
  --topic-career: #6b3fa0;
  --topic-business: #0f6b6b;
  --topic-marriage: #a3123a;
  --topic-relationships: #b23a5e;
  --topic-finance: #2f6b3a;
  --topic-property: #8a5a00;
  --topic-education: #5b3fc4;
  --topic-foreign: #1f5f8b;
  --topic-children: #b4501c;
  --topic-family: #556b2f;
  --topic-spiritual: #6a1b9a;
  --shadow: 0 12px 32px rgb(90 40 10 / 0.22);
  --past: #7d6650;
  --ahead: #8b1a1a;
  --motif: #b5541c;
  --font-head: "Rozha One", Georgia, serif;
  --font-reading: "Tiro Devanagari Hindi", Georgia, serif;
  --scrim: rgb(74 20 16 / 0.35);
  --card-shadow: 0 1px 2px rgb(90 40 10 / 0.15);
  --header-shadow: 0 6px 12px -12px rgb(90 40 10 / 0.4);
  --avatar-text: #fff;
  --strong: #2f6b3a;
  --moderate: #1f5f8b;
  --weak: #9b1c1c;
  --pill-text: #fff;
  color-scheme: light;
}

:root:lang(hi), :root:lang(mr) { --font-script: "Noto Sans Devanagari"; }
:root:lang(gu) { --font-script: "Noto Sans Gujarati"; }
:root:lang(ta) { --font-script: "Noto Sans Tamil"; }
:root:lang(te) { --font-script: "Noto Sans Telugu"; }
:root:lang(bn) { --font-script: "Noto Sans Bengali"; }
:root:lang(kn) { --font-script: "Noto Sans Kannada"; }

/* Blog pages (static HTML). The build prepends tokens.css, so light and dark follow the system. */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.65; }
a { color: var(--accent); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 var(--s4); }
.row { display: flex; align-items: center; gap: var(--s4); min-height: 60px; }

.button { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: var(--accent-text) !important; font-weight: 600; text-decoration: none; }

main.wrap { padding-top: var(--s8); padding-bottom: 48px; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s4); }
.crumbs a { color: var(--muted); }
h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); line-height: 1.2; letter-spacing: -0.01em; margin: 0 0 var(--s2); }
h2 { font-size: 1.45rem; line-height: 1.3; margin: 2.2em 0 0.6em; }
h3 { font-size: 1.15rem; margin: 1.8em 0 0.5em; }
p, ul, ol { margin: 0 0 1em; }
li { margin-bottom: 0.35em; }
.meta { color: var(--muted); font-size: 0.9rem; }
.lede { color: var(--muted); font-size: 1.1rem; }

.in-short { background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: var(--radius-sm);
  padding: var(--s4); margin: var(--s6) 0; }
.in-short p { margin: 4px 0 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 0.93rem; display: block; overflow-x: auto; }
th, td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { color: var(--muted); font-weight: 600; background: var(--surface-2); }
code { font-family: var(--mono); font-size: 0.9em; background: var(--surface-2); padding: 1px 5px; border-radius: 4px; }
pre { background: var(--surface-2); padding: var(--s4); border-radius: var(--radius-sm); overflow-x: auto; }
pre code { background: none; padding: 0; }
blockquote { margin: 0 0 1em; padding-left: var(--s4); border-left: 3px solid var(--line); color: var(--muted); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--s3) var(--s4); margin-bottom: var(--s2); }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: var(--s2) 0 0; color: var(--muted); }
.related ul { padding-left: 1.2em; }
.cta { margin-top: 48px; padding: var(--s6); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.cta h2 { margin-top: 0; }

.posts { list-style: none; padding: 0; }
.posts li { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.posts h2 { margin: 0 0 var(--s2); font-size: 1.25rem; }
.posts h2 a { text-decoration: none; color: var(--text); }
.posts p { margin: 0 0 4px; }


@media (max-width: 639px) {
  main.wrap { padding-top: var(--s6); }
}

/* who publishes an article and how it is made (site/pages.ts articlePage) */
.about-article { margin: 2rem 0 0; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.about-article p { margin: 0.4rem 0 0; }

/* The public website (home, Kundli, Matching, Panchang, Rashifal, policy pages, blog): a warm palette of
   its own, inside .site only. The app keeps its themes. */
.site {
  --bg: #fbf6ec;
  --surface: #ffffff;
  --text: #2a2118;
  --muted: #6f6253;
  --line: #eadfca;
  --accent: #a8741a;
  --accent-strong: #8a5c0f;
  --accent-soft: #f6ead2;
  --footer-bg: #2b2620;
  --footer-text: #e9e1d3;
  --surface-2: #f8f1e3;
  --accent-text: #ffffff;
  --now: #d97706;
  --now-soft: #fdf0d8;
  --good: #15803d;
  --caution: #b45309;
  --neutral: #64748b;
  --danger: #b42318;
  --card-shadow: 0 1px 2px rgb(60 40 10 / 0.10);
  --shadow: 0 12px 32px rgb(60 40 10 / 0.16);
  --font-head: var(--site-head);
  --font-reading: var(--font);
  color-scheme: light;
  --site-head: "Fraunces", Georgia, "Times New Roman", serif;
  --site-max: 1180px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
}
.site a { color: inherit; }
.site h1, .site h2, .site h3 { font-family: var(--site-head); letter-spacing: -0.01em; }
.site .card { background: var(--surface); border-color: var(--line); }
.site button:not(.secondary):not(.link-button), .site .primary-button { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
/* the Name box's ✕ (forget a remembered person): quiet, not a site button */
.site .name-suggest button.name-forget { background: none; border-color: transparent; color: var(--muted); box-shadow: none; padding: 4px 10px; }
.site .name-suggest li button.name-forget:hover, .site .name-suggest li button.name-forget:focus-visible { color: var(--danger);
  background: none; }
.site button:not(.secondary):not(.link-button):hover, .site .primary-button:hover { background: #6e4806; }
.site .link-button { color: var(--accent-strong); }

/* header */
.site-header { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.site-header-row { display: flex; align-items: center; gap: var(--s3); max-width: var(--site-max); margin: 0 auto;
  padding: 10px var(--s4); }
.site-brand { display: inline-flex; align-items: center; gap: var(--s2); font-family: var(--site-head); font-weight: 600;
  font-size: 1.2rem; text-decoration: none; margin-right: auto; }
.site-logo { display: block; height: 30px; width: auto; }
.site-footer .site-logo { height: 28px; }
.site-actions { display: flex; align-items: center; gap: var(--s3); }
.site-actions a { text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.site-actions .site-login { padding: 6px 14px; border-radius: 999px; background: var(--accent-strong); color: #fff; }
/* the paid report, always in view */
.site-actions .site-report { padding: 5px 13px; border-radius: 999px; border: 1.5px solid var(--accent-strong); color: var(--accent-strong); }
.site-actions .site-report:hover { background: var(--accent-soft); }
.site-nav { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--s4); }
.site-nav > ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 2px var(--s2); margin: 0; padding: 0; list-style: none; }
.site-nav > ul > li { position: relative; }
.site-nav > ul > li > a, .site-nav summary { display: block; padding: 10px 12px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; cursor: pointer; border-bottom: 2px solid transparent; }
.site-nav summary { list-style: none; }
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav summary::after { content: "▾"; margin-left: 4px; font-size: 0.75em; color: var(--muted); }
.site-nav > ul > li > a:hover, .site-nav summary:hover, .site-nav [aria-current="page"] { border-bottom-color: var(--accent); }
.site-nav details[open] > summary { color: var(--accent-strong); }
.nav-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); z-index: 40; min-width: 220px;
  margin: 0; padding: var(--s2); list-style: none; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 32px rgb(60 40 10 / 0.14); }
.nav-panel ul { list-style: none; margin: 0; padding: 0; }
.nav-panel a { display: block; padding: 8px 10px; border-radius: 6px; text-decoration: none; white-space: nowrap; }
.nav-panel a:hover { background: var(--accent-soft); }
.nav-hint { display: block; font-size: 0.8rem; font-weight: 400; color: var(--muted); white-space: normal; margin-top: 1px; }
.nav-panel-calculators { min-width: 340px; }
/* the panels: one look, a soft fade in, rows that light up under the pointer */
.nav-panel { padding: 10px; border-radius: 14px; }
@media (prefers-reduced-motion: no-preference) {
  .nav-panel { animation: nav-in 0.14s ease-out; }
  @keyframes nav-in { from { opacity: 0; } to { opacity: 1; } }
}
.nav-panel a { transition: background 0.12s, color 0.12s; }
.nav-panel a:hover, .nav-panel a:focus-visible { color: var(--accent-strong); }
.nav-panel a.nav-item { display: flex; align-items: center; gap: 10px; padding: 7px 12px 7px 8px; }
.nav-art { flex: none; display: grid; place-items: center; width: 34px; height: 34px; color: var(--accent); }
.nav-art .art { width: 34px; height: 34px; }
.nav-text { display: grid; gap: 1px; }
/* Learn: every reference page at once, under headings */
.nav-panel-learn { width: max-content; min-width: 0; left: auto; right: 0; transform: none; }
.nav-sections { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.nav-panel-learn .nav-sections { grid-template-columns: repeat(4, max-content); gap: 4px var(--s3); }
.nav-section-title { margin: 4px 10px 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted); }
/* Rashifal: the twelve signs with their art, the yearly horoscope apart */
.nav-panel-rashifal { min-width: 470px; left: 0; transform: none; }
.nav-signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.nav-signs a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; text-align: center; }
.nav-signs .nav-phone-sign-art { width: 42px; height: 42px; }
.nav-signs .nav-hint { margin: 0; }
.nav-signs-more { border-top: 1px solid var(--line); margin-top: var(--s2) !important; padding-top: var(--s2) !important; }
.nav-signs-more a { font-weight: 600; color: var(--accent-strong); }
.nav-phone { display: none; }
/* small laptops: tighter items keep the menu on one row */
@media (min-width: 900px) and (max-width: 1199px) {
  .site-nav > ul { gap: 2px 0; }
  .site-nav > ul > li > a, .site-nav summary { padding: 10px 7px; }
}

/* breadcrumbs */
.site-crumbs { max-width: var(--site-max); width: 100%; margin: 0 auto; padding: var(--s3) var(--s4) 0; font-size: 0.9rem; }
.site-crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; color: var(--muted); }
.site-crumbs li + li::before { content: "›"; margin-right: 6px; }
.site-crumbs a { text-decoration: none; }
.site-crumbs [aria-current] { color: var(--accent-strong); }

/* page */
.site-main { flex: 1; width: 100%; max-width: var(--site-max); margin: 0 auto; padding: var(--s4) var(--s4) var(--s8);
  display: grid; gap: var(--s6); align-content: start; }

/* footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: var(--s8) var(--s4) var(--s4); }
.site-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr 0.9fr; gap: var(--s6); max-width: var(--site-max); margin: 0 auto; }
.site-footer h2 { margin: 0 0 var(--s3); font-size: 1rem; color: #fff; }
.site-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-footer ul.site-footer-two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer a { text-decoration: none; color: var(--footer-text); }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .site-brand { color: #fff; margin: 0 0 var(--s3); }
.site-footer p { margin: 0 0 var(--s3); line-height: 1.5; }
.site-disclaimer { font-size: 0.85rem; opacity: 0.8; }
.site-footer .site-copy { max-width: var(--site-max); margin: var(--s6) auto 0; padding-top: var(--s3); border-top: 1px solid rgb(255 255 255 / 0.12);
  font-size: 0.85rem; opacity: 0.8; }

@media (max-width: 899px) {
  .site-nav { display: none; }
  .site-actions { display: none; }
  .nav-phone { display: block; position: relative; }
  .nav-phone > summary { list-style: none; cursor: pointer; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px;
    font-weight: 600; background: var(--surface); }
  .nav-phone > summary::-webkit-details-marker { display: none; }
  /* the header's blur would trap the panel's fixed position inside the header: off while the menu is open */
  .site-header:has(.nav-phone[open]) { backdrop-filter: none; background: var(--bg); }
  /* open: "Menu" turns into a close control, and the panel covers the screen below the header */
  .nav-phone[open] > summary { font-size: 0; }
  .nav-phone[open] > summary::before { content: attr(data-close); font-size: 1rem; }
  .nav-phone-panel { position: fixed; inset: var(--menu-top, 57px) 0 0 0; z-index: 40; overflow-y: auto; overscroll-behavior: contain;
    background: var(--bg); padding: var(--s4) 16px calc(var(--s6) + env(safe-area-inset-bottom)); display: grid; gap: var(--s4);
    align-content: start; border-top: 1px solid var(--line); }
  .nav-phone-panel ul { list-style: none; margin: 0; padding: 0; }
  .nav-phone-panel a { text-decoration: none; color: var(--text); }
  .nav-phone-panel a[aria-current="page"] { color: var(--accent-strong); font-weight: 700; }
  .nav-phone-quick { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .nav-phone-quick a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px; text-align: center;
    border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }
  .nav-phone-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
  .nav-phone-list > li + li { border-top: 1px solid var(--line); }
  .nav-phone-heading { margin: 0; padding: var(--s3) var(--s4) var(--s1); font-weight: 700; font-size: 1.05rem; }
  .nav-phone-group .nav-section-title { margin: var(--s2) var(--s4) 0; }
  .nav-phone-group .nav-sections { display: block; }
  .nav-phone-group .nav-hint { font-size: 0.82rem; }
  .nav-phone-group .nav-signs-more a { padding-left: var(--s4); }
  .nav-phone-link, .nav-phone-group > summary { display: flex; align-items: center; justify-content: space-between; min-height: 52px;
    padding: 0 var(--s4); font-weight: 600; font-size: 1.02rem; cursor: pointer; list-style: none; }
  .nav-phone-group > summary::-webkit-details-marker { display: none; }
  .nav-phone-group > summary::after { content: "›"; font-size: 1.4rem; color: var(--muted); transition: transform .15s; }
  .nav-phone-group[open] > summary::after { transform: rotate(90deg); }
  .nav-phone-group ul a { display: block; padding: 12px var(--s4) 12px calc(var(--s4) + 12px); }
  .nav-phone-group ul a.nav-item { display: flex; align-items: center; gap: 12px; padding: 8px var(--s4) 8px calc(var(--s4) + 4px); }
  .nav-phone-group > ul:last-child { padding-bottom: var(--s2); }
  .nav-phone-signs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; padding: 0 var(--s3) var(--s2) !important; }
  .nav-phone-signs a { display: flex !important; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px !important;
    border-radius: 10px; background: var(--bg); font-size: 0.9rem; text-align: center; }
  .nav-phone-sign-art { width: 30px; height: 30px; }
  .nav-phone-account { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
  .nav-phone-account a:first-child { grid-column: 1 / -1; }
  .nav-phone-account a { display: flex; align-items: center; justify-content: center; min-height: 48px; }
  .site-footer-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .site-footer-about { grid-column: 1 / -1; }
}
@media (max-width: 479px) {
  .site-footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* illustrations (src/site/art): gold lines on soft cream */
.art { display: block; color: var(--accent); overflow: visible; }
.art-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.art-soft { fill: var(--accent-soft); }
.art-fill { fill: currentColor; }
.art-sun { fill: #f3d58a; }
.art-mark { stroke-width: 3.2; }
.art-mark-small { stroke-width: 8; }
.art-cell { fill: var(--surface); stroke: var(--accent); stroke-width: 1.4; stroke-linejoin: round; }
.art-accent { fill: var(--accent); stroke: var(--accent-strong); stroke-width: 1.4; stroke-linejoin: round; }
.art-text.art-on-accent { fill: #fff; font-weight: 700; }
.art-glyph, .art-text { fill: var(--accent-strong); font-family: "Segoe UI Symbol", "Noto Sans Symbols", "DejaVu Sans", serif; }
.art-text { font-family: var(--site-head); font-weight: 600; }

/* page building blocks */
.site-intro { display: grid; gap: var(--s2); max-width: 760px; }
.site-intro h1 { margin: var(--s2) 0 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.site-lede { margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }
/* The header's language picker: a globe and the current language; the list opens below it. On a phone the list sits
   open at the top of the menu. */
.lang-pick { position: relative; }
.lang-pick > summary { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 999px; cursor: pointer; list-style: none; white-space: nowrap; }
.lang-pick > summary::-webkit-details-marker { display: none; }
.lang-pick > ul { position: absolute; right: 0; top: calc(100% + 6px); z-index: 30; min-width: 160px; margin: 0;
  padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); }
.lang-pick li > a, .lang-pick li > span, .lang-pick li > button {
  display: block; padding: 8px 10px; min-height: 36px; border-radius: 8px; text-decoration: none; }
/* the app's picker switches in place: buttons, drawn like the site's links */
.lang-pick li > button { width: 100%; text-align: left; border: 0; background: none; color: var(--accent); font: inherit;
  cursor: pointer; }
.lang-pick li > button:hover, .lang-pick li > button:focus-visible { background: var(--accent-soft); }
.lang-pick [aria-current="page"], .lang-pick [aria-current="true"] { font-weight: 600; color: var(--text); }
.lang-pick-top { display: none; }
@media (max-width: 899px) { .lang-pick-top { display: block; } }
.site-two { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
.site-stack { display: grid; gap: var(--s4); }
.site .card { display: grid; gap: var(--s3); padding: var(--s4); border: 1px solid var(--line); border-radius: 14px; }
.site .card h2 { margin: 0; font-size: 1.25rem; }
.site-ticks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.site-ticks li { padding-left: 1.6em; position: relative; line-height: 1.45; }
.site-ticks li::before { content: "✦"; position: absolute; left: 0; color: var(--accent); }
.site-links { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.site-links a { text-decoration: none; font-weight: 600; }
.site-defs { display: grid; gap: var(--s3); margin: 0; }
.site-defs dt { font-weight: 700; font-family: var(--site-head); }
.site-defs dd { margin: 2px 0 0; color: var(--muted); line-height: 1.5; }
.site .notice { margin: 0; padding: 10px 12px; border-radius: 8px; background: var(--accent-soft); }
.site .client-form { max-width: none; }
.site .client-form label:not(.inline) { display: grid; gap: 4px; }
@media (max-width: 899px) { .site-two { grid-template-columns: minmax(0, 1fr); } }

/* small shared pieces (the panchang card, the matching card, the Rashifal page) */
.link-button { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; text-decoration: underline;
  cursor: pointer; }
.place-results { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.panchang { display: grid; grid-template-columns: auto 1fr; gap: 6px var(--s3); margin: 0; }
.panchang dt { font-weight: 600; }
.panchang dd { margin: 0; }
/* the Panchang page's first card: the answers, before the clock */
.card.pc-glance { border-left: 4px solid var(--accent); }
.pc-glance h2 { margin-top: 0; }
.pc-glance .fest-today { margin: 0 0 var(--s3); }
.pc-glance .panchang { font-size: 1.05rem; }
.pc-glance .pc-q-good { color: #6b5210; font-weight: 600; }
.pc-glance .pc-q-avoid { color: #8a3b12; }
.pc-glance-more { margin: var(--s3) 0 0; font-size: 0.92rem; }
.home-step { margin: 0; font-weight: 600; }
/* /rashifal: the twelve signs' readings for today, three to a row */
.rashifal-all { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: 0 0 var(--s4); padding: 0;
  list-style: none; }
.rashifal-all li { display: grid; align-content: start; gap: var(--s2); }
.rashifal-all li p { margin: 0; line-height: 1.55; }
.rashifal-all-head { display: flex; align-items: center; gap: var(--s3); text-decoration: none; font-size: 1.1rem; }
.rashifal-all-art { width: 52px; height: 52px; flex: none; color: var(--accent); }
@media (max-width: 899px) { .rashifal-all { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 479px) { .rashifal-all { grid-template-columns: minmax(0, 1fr); } }
.guide-section .site-table caption { text-align: left; font-weight: 600; padding-bottom: var(--s2); }
.rashifal-page { display: grid; gap: var(--s4); max-width: 820px; }
.rashifal-page h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.rashifal-hero { display: flex; align-items: center; gap: var(--s3); }
.rashifal-hero h1 { margin: 0 0 4px; }
.rashifal-art { width: 88px; height: 88px; flex: none; color: var(--accent); }
/* the twelve signs at the top of a Rashifal page: one row, sideways on a phone */
.sign-pick { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 var(--s4); padding-bottom: 4px; scrollbar-width: thin; }
.sign-pick a { flex: none; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
  font-size: 0.88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.sign-pick a[aria-current="page"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.sign-strip a { display: inline-flex; align-items: center; gap: 6px; }
.strip-art { width: 22px; height: 22px; flex: none; color: var(--accent); }
.rashifal-text { margin: 0; font-size: 1.08rem; line-height: 1.65; }
.rashifal-facts { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--muted); }
.rashifal-cta { justify-self: start; text-decoration: none; }
.sign-strip { display: flex; flex-wrap: wrap; gap: var(--s2); }
.sign-strip a { padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: var(--surface); }

/* the home */
.home-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s6); align-items: center;
  padding: var(--s8) var(--s6); border-radius: 22px; border: 1px solid var(--line);
  background: radial-gradient(circle at 85% 40%, #fdf0d2 0, transparent 55%), linear-gradient(135deg, #fffaf0, #f7e7c4); }
.home-hero h1 { margin: 0 0 var(--s3); font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.1; }
.home-hero-cta { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s4); }
/* the hero's form: Free Kundli, or Kundli Matching in the other tab */
.home-hero { align-items: center; }
.home-gets { margin: var(--s4) 0 0; gap: var(--s2); font-size: 1.02rem; }
.start-card { padding: 0; overflow: visible; box-shadow: 0 16px 40px rgb(120 80 20 / 0.12); }
.start-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
.site .start-tabs button.start-tab { min-height: 52px; padding: 0 var(--s3); border: 0; border-bottom: 3px solid transparent; border-radius: 0;
  background: none; color: var(--muted); font-weight: 700; font-size: 1rem; cursor: pointer; }
.site .start-tabs button.start-tab:first-child { border-top-left-radius: var(--radius); }
.site .start-tabs button.start-tab:last-child { border-top-right-radius: var(--radius); }
.site .start-tabs button.start-tab[aria-selected="true"] { color: var(--accent-strong); border-bottom-color: var(--accent); background: none; }
.site .start-tabs button.start-tab:hover { background: var(--accent-soft); }
.start-panel { padding: var(--s4); }
.start-panel .home-step { margin: 0 0 var(--s2); font-weight: 700; }
.home-hero-art { width: 100%; max-width: 380px; justify-self: center; }
/* today in one line under the hero buttons: the tithi, Rahu kaal, the next festival */
.home-today { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s3); margin-top: var(--s4); font-size: 0.95rem; }
.home-today-label { padding: 2px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.home-today a { font-weight: 600; }
.site .primary-button, .site .ghost-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.site .ghost-button { border: 1px solid var(--accent); color: var(--accent-strong); background: var(--surface); }
.home-section { display: grid; gap: var(--s4); scroll-margin-top: 120px; }
/* a section's title: a gold star, the title, a line running to the right (and its "more" link), the subtitle below */
.section-head { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto; align-items: center; gap: 4px var(--s3); }
.section-head h2 { grid-column: 1; grid-row: 1; display: flex; align-items: center; gap: 10px; margin: 0; font-size: 1.75rem; }
.section-head h2::before { content: "✦"; color: var(--accent); font-size: 0.62em; }
.section-head::after { content: ""; grid-column: 2; grid-row: 1; border-top: 1.5px solid #e4d2a8; }
.section-head .section-more { grid-column: 3; grid-row: 1; margin-left: 0; }
.section-head > p { grid-column: 1 / -1; grid-row: 2; margin: 0; }
/* every other section on a soft band across the whole width */
.site { --band: #f5ebd7; }
.home-band .why li { background: var(--surface); border: 1px solid var(--line); } /* cards stay white on the band */
.home-band { background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax); padding: var(--s6) 0; }
.sign-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.sign-grid a { display: grid; justify-items: center; gap: 2px; padding: var(--s3) var(--s2); border-radius: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.sign-grid a:hover, .sign-grid a:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(120 80 20 / 0.12); }
.sign-art { width: 64px; height: 64px; }
.sign-name { font-weight: 700; }
.reading-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.reading-tiles a { display: grid; gap: var(--s2); height: 100%; padding: var(--s3); border-radius: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.reading-tiles a:hover, .reading-tiles a:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 26px rgb(120 80 20 / 0.14); }
.tile-art { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: 12px; background: linear-gradient(160deg, #fff8ea, #f5e4c2); }
.tile-art .art { width: 72%; max-height: 90%; }
.reading-tiles h3 { margin: 0; font-size: 1.15rem; }
.reading-tiles p { margin: 0; }
.home-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.card-head { display: flex; gap: var(--s3); align-items: center; }
.card-head h2 { margin: 0; }
.card-head p { margin: 2px 0 0; }
.card-art { width: 64px; height: 64px; flex: none; }
.site-more { justify-self: start; font-weight: 700; color: var(--accent-strong) !important; text-decoration: none; }
.moves { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.moves li { display: flex; justify-content: space-between; gap: var(--s3); padding: 8px 0; border-bottom: 1px dashed var(--line); }
.moves li:last-child { border-bottom: 0; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.why li { padding: var(--s4); border-radius: 14px; background: var(--accent-soft); }
.why h3 { margin: 0 0 var(--s2); }
.why p { margin: 0; line-height: 1.5; }

/* the panchang page */
.pc-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3); }
.pc-date { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--s2); }
.pc-date .pc-date-box { width: auto; flex: 0 1 auto; min-width: 0; }
.pc-date .secondary { min-width: 40px; }
.pc-date-box { min-height: 40px; }
.pc-place { margin: 0; }
.city-picker { display: grid; gap: var(--s2); margin-top: var(--s2); }
.pc-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.pc-cg { grid-column: 1 / -1; }
.pc-good { border-left: 4px solid #3f8f4f !important; }
.pc-avoid { border-left: 4px solid #b4442f !important; }
.cg-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.cg-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.cg-table caption { text-align: left; font-weight: 700; padding-bottom: var(--s2); }
.cg-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.cg-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.cg-good td:first-child { color: #2f7a3e; font-weight: 700; }
.cg-neutral td:first-child { color: var(--muted); font-weight: 700; }
.cg-avoid td:first-child { color: #a3402c; font-weight: 700; }
.cg-table tr[aria-current="time"] { background: var(--accent-soft); }
.cg-now { font-weight: 700; color: var(--accent-strong); }

@media (max-width: 899px) {
  .home-hero { grid-template-columns: minmax(0, 1fr); padding: var(--s6) var(--s4); }
  .home-hero-art { max-width: 260px; }
  .sign-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .reading-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-pair { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); }
  .pc-grid { grid-template-columns: minmax(0, 1fr); }
  .cg-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 479px) {
  /* the signs on the first screen: no hero picture, a tighter hero */
  .home-hero-art { display: none; }
  .home-hero { padding: var(--s4) 0; gap: var(--s4); }
  .home-gets { display: none; } /* the form says it; the phone keeps the first screen for it */
  .sign-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .reading-tiles { grid-template-columns: minmax(0, 1fr); }
  .sign-art { width: 52px; height: 52px; }
}

/* about, contact and policy pages */
.site-article { display: grid; gap: var(--s3); max-width: 760px; line-height: 1.65; }
.site-article h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.5rem); }
.site-article h2 { margin: var(--s4) 0 0; font-size: 1.3rem; }
.site-article p, .site-article ul { margin: 0; }
.site-article ul { padding-left: 1.3em; display: grid; gap: 6px; }
.to-fill { padding: 0 4px; border-radius: 4px; background: #ffe7a3; color: #6b4300; font-weight: 600; }

/* the calculators */
.calc-form { align-content: start; }
.calc-form label { display: grid; gap: 4px; font-weight: 600; }
.calc-form button { justify-self: start; }
.calc-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.calc-numbers li { display: grid; gap: 2px; padding: var(--s3); border-radius: 12px; background: var(--accent-soft); }
.calc-label { font-weight: 700; color: var(--muted); font-size: 0.9rem; }
.calc-big { font-family: var(--site-head); font-size: 2.2rem; line-height: 1.1; color: var(--accent-strong); }
.calc-planet { font-weight: 600; }
.calc-numbers p { margin: var(--s1) 0 0; line-height: 1.45; }
.loshu { border-collapse: collapse; margin: 0 auto; }
.loshu td { width: 72px; height: 64px; text-align: center; border: 2px solid var(--line); font-family: var(--site-head);
  font-size: 1.3rem; font-weight: 600; color: var(--accent-strong); background: var(--surface); }
.loshu td.loshu-missing { color: var(--muted); background: var(--surface-2); }
.moon-result { align-content: start; }
.moon-kicker { font-size: 0.85rem !important; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.moon-head { display: flex; align-items: center; gap: var(--s3); }
.moon-art { width: 84px; height: 84px; flex: none; }
.moon-big { margin: 0; font-family: var(--site-head); font-size: 1.5rem; line-height: 1.25; }
.moon-links { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; }
.loshu td.loshu-added-only { color: var(--muted); }
.loshu-tag { margin-left: 2px; font-family: var(--font); font-size: 0.65rem; font-weight: 700; vertical-align: super;
  color: var(--accent); text-decoration: none; cursor: help; }

/* zodiac pages */
.zodiac-grid .zodiac-meta { font-size: 0.8rem; color: var(--muted); text-align: center; }
.zodiac-hero { display: flex; align-items: center; gap: var(--s4); }
.zodiac-hero h1 { margin: 0; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.zodiac-hero-art { width: 110px; height: 110px; flex: none; }
.dl-row { display: contents; }
.z-excerpt { margin: 0; padding: var(--s3); border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.z-section p { margin: 0; line-height: 1.65; }
@media (max-width: 479px) { .zodiac-hero-art { width: 72px; height: 72px; } }

/* transit pages */
.table-scroll { overflow-x: auto; max-width: 100%; }
.site-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.site-table th { text-align: left; color: var(--muted); font-weight: 600; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.site-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.site-table .t-month th { color: var(--accent-strong); font-family: var(--site-head); font-size: 1rem; padding-top: var(--s3); }
.pt-gochar td:nth-child(3) { min-width: 220px; line-height: 1.5; }
.t-year { font-family: var(--site-head); font-size: 1.3rem; min-width: 3.5em; text-align: center; }
.t-now { margin: 0; font-weight: 600; }

/* dosha calculators */
/* Dosha check: each a question with its planet and a Check button */
.dosha-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.dosha-cards a { display: grid; grid-template-columns: 64px 1fr; grid-template-rows: auto 1fr auto; gap: 4px var(--s3); height: 100%;
  padding: var(--s4); border: 1px solid var(--line); border-radius: 16px; background: var(--surface); text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s; }
.dosha-cards a:hover, .dosha-cards a:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 26px rgb(120 80 20 / 0.14); }
.dosha-art { grid-row: 1 / 3; color: var(--accent); }
.dosha-art .art { width: 64px; height: 64px; }
.dosha-cards h3 { margin: 0; font-size: 1.15rem; align-self: end; }
.dosha-cards p { margin: 0; font-size: 0.92rem; line-height: 1.45; }
.dosha-go { grid-column: 1 / -1; justify-self: start; margin-top: var(--s3); padding: 7px 16px; border-radius: 999px;
  background: var(--accent-strong); color: #fff; font-weight: 600; font-size: 0.92rem; }
.dosha-cards a:hover .dosha-go { background: #6e4806; }
/* Learn: icon tiles, four to a row */
.learn-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
.learn-tiles a { display: flex; align-items: center; gap: var(--s3); height: 100%; padding: var(--s3); border: 1px solid var(--line);
  border-radius: 14px; background: var(--surface); font-weight: 600; text-decoration: none; transition: transform 0.15s, box-shadow 0.15s; }
.learn-tiles a:hover, .learn-tiles a:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(120 80 20 / 0.12);
  color: var(--accent-strong); }
.learn-art { flex: none; display: grid; place-items: center; width: 48px; height: 48px; color: var(--accent); }
.learn-art .art { width: 48px; height: 48px; }
.section-more { margin-left: auto; font-weight: 600; text-decoration: none; color: var(--accent-strong); }
@media (max-width: 899px) {
  .dosha-cards { grid-template-columns: minmax(0, 1fr); }
  .learn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .learn-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .learn-tiles a { flex-direction: column; text-align: center; gap: 6px; font-size: 0.92rem; }
  .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head::after { display: none; }
  .section-head .section-more { grid-column: 1; grid-row: 3; }
}
.site-table tr.s-sade td:first-child { font-weight: 700; color: var(--accent-strong); }
.s-phases { display: block; font-size: 0.85rem; color: var(--muted); }
.calc-result { scroll-margin-top: 120px; } /* below the sticky header when scrolled into view */
/* library and guides */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s3); margin: 0 0 var(--s5);
  padding: 0; list-style: none; }
.lib-grid a { display: grid; gap: 2px; padding: var(--s4); border-radius: 14px; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line); transition: transform .15s, box-shadow .15s; }
.lib-grid a:hover, .lib-grid a:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgb(120 80 20 / 0.12); }
.lib-grid .zodiac-meta { font-size: 0.85rem; color: var(--muted); }
.lib-prev-next { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s4); }
.lib-groups { margin: var(--s3) 0 0; padding-left: 1.2em; color: var(--muted); font-size: 0.92rem; }
.calc-faq h3 { font-size: 1rem; margin: var(--s4) 0 var(--s1); }
/* library cards and headers with their medallions */
.lib-card-art { width: 56px; height: 56px; margin-bottom: var(--s2); }
.lib-grid-dense { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.lib-hero { display: flex; align-items: center; gap: var(--s4); }
.lib-hero > div { min-width: 0; }
.lib-hero-art { width: 96px; height: 96px; flex: none; }
@media (max-width: 479px) {
  .lib-hero-art { width: 64px; height: 64px; }
  .lib-grid-dense { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.t-planet { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.t-planet-art { width: 22px; height: 22px; flex: none; }
/* data visuals */
.viz { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; color: var(--accent); }
.viz-sign { fill: var(--surface); stroke: var(--accent); stroke-width: 1; }
.viz-tick { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; }
.viz-dot { fill: var(--surface); stroke: var(--accent); stroke-width: 1.4; }
.viz-mark { stroke-width: 3.6; }
.viz-planet.is-highlight .viz-dot { fill: var(--accent); stroke: var(--accent-strong); }
.viz-planet.is-highlight .viz-mark { color: #fff; }
.viz-retro { fill: var(--accent-strong); font-weight: 700; font-family: var(--site-body, inherit); }
.viz-exalted { fill: #e9c46a; stroke: var(--accent-strong); stroke-width: 1; }
.viz-own { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 1; }
.viz-debilitated { fill: #e7ded3; stroke: #9a8f84; stroke-width: 1; }
.viz-mool { fill: var(--accent-strong); }
.viz-small { fill: var(--muted); font-weight: 600; }
.viz-mark-big { stroke-width: 3.2; }
.viz-legend text { fill: var(--text); }
.viz-nak { fill: var(--surface); stroke: var(--accent); stroke-width: 0.8; }
.viz-nak.is-highlight { fill: var(--accent); }
.viz-num { fill: var(--muted); font-weight: 600; }
.viz-num.is-highlight { fill: #fff; }
.viz-boundary { stroke: var(--accent-strong); stroke-width: 1.6; }
.viz-house { stroke: var(--accent); stroke-width: 0.6; stroke-linejoin: round; }
.viz-kendra { fill: #f3dfb0; }
.viz-trikona { fill: #f7ecd1; }
.viz-dusthana { fill: #ece6df; }
.viz-other { fill: var(--surface); }
.viz-house.is-highlight { stroke: var(--accent-strong); stroke-width: 2.4; }
.viz-hnum { fill: var(--accent-strong); font-weight: 700; }
.viz-wheel { margin: var(--s2) auto var(--s4); }
.viz-chart { max-width: 280px; margin: var(--s4) auto var(--s2); }
.viz-rashi { fill: var(--muted); font-weight: 600; }
.viz-plabel { fill: var(--accent-strong); font-weight: 700; }
/* the Panchang day dial */
.dial-night { fill: #ede3d3; }
.dial-day { fill: #fbf1d9; }
.dial-cg { stroke: var(--surface); stroke-width: 1.2; }
.dial-good { fill: #c9a34a; }
.dial-neutral { fill: #e4d3a8; }
.dial-avoid { fill: #b9aea2; }
.dial-cg.is-now { stroke: var(--text); stroke-width: 2; }
.dial-timing { stroke: var(--surface); stroke-width: 1; }
.dial-tick { stroke: var(--muted); stroke-width: 1; }
.dial-sun { stroke: var(--accent); stroke-width: 1; }
.dial-needle { stroke: var(--text); stroke-width: 2.2; stroke-linecap: round; }
.dial-arrow { fill: var(--text); }
.dial-tick-major { stroke: var(--text); stroke-width: 1.4; }
.dial-hour { fill: var(--text); font-weight: 700; }
.dial-hour-minor { fill: var(--muted); }
.dial-cg-name { font-weight: 700; pointer-events: none; }
.dial-on-good { fill: #3d2a0c; } .dial-on-neutral { fill: #5c4a2a; } .dial-on-avoid { fill: #3f362d; }
.dial-half { fill: var(--muted); font-weight: 700; letter-spacing: 0.04em; }
.dial-cg.is-picked, .dial-timing.is-picked { stroke: var(--accent-strong); stroke-width: 2.4; }
.dial-howto { margin: 0 0 var(--s2); }
.dial-layout { display: grid; gap: var(--s3); align-items: start; }
.viz.dial-clock { max-width: 680px; }
.dial-layout .share { justify-content: center; }
.dial-detail { min-height: 2.6em; margin: var(--s2) 0 0; text-align: center; }
.dial-guide { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: var(--s3); }
.dial-guide h3 { margin: 0 0 var(--s1); font-size: 1rem; }
.dial-guide p, .dial-guide ul { margin: 0 0 var(--s2); }
.dial-guide ul { padding-left: 1.1em; }
.dial-guide-good { color: #6b5210; } .dial-guide-avoid { color: var(--muted); }
.dial-parts { margin-top: var(--s3); }
.dial-parts summary { cursor: pointer; font-weight: 600; }
.dial-parts ul { margin: var(--s2) 0 0; padding-left: 1.1em; }
.dial-now-cg { font-weight: 700; }
.dial-text-good { fill: #8a6a14; }
.dial-text-neutral { fill: var(--muted); }
.dial-text-avoid { fill: #7d6f62; }
.dial-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: var(--s3) 0 0; padding: 0;
  list-style: none; font-size: 0.85rem; color: var(--muted); }
.dial-legend li { display: inline-flex; align-items: center; gap: 6px; }
.dial-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dial-legend .dial-good { background: #c9a34a; } .dial-legend .dial-neutral { background: #e4d3a8; }
.dial-legend .dial-avoid { background: #b9aea2; } .dial-legend .dial-day { background: #fbf1d9; border: 1px solid var(--line); }
.dial-note { text-align: center; font-size: 0.85rem; margin-top: var(--s2); }
.dial-arc-label { font-weight: 700; }
/* the Saturn lifeline */
.life-chart { max-width: 640px; margin: var(--s3) auto var(--s2); }
.life-track { fill: var(--bg); stroke: var(--line); }
.life-band { stroke: var(--surface); stroke-width: 1; }
.life-rising, .life-key.life-rising { fill: #e9c46a; background: #e9c46a; }
.life-peak, .life-key.life-peak { fill: #c9a34a; background: #c9a34a; }
.life-setting, .life-key.life-setting { fill: #dfc27e; background: #dfc27e; }
.life-ashtama, .life-key.life-ashtama { fill: #8a6a3f; background: #8a6a3f; }
.life-kantaka, .life-key.life-kantaka { fill: #c8beb2; background: #c8beb2; }
.life-now { stroke: var(--text); stroke-width: 2; }
.life-now-tip { fill: var(--text); }
.life-now-text { fill: var(--text); font-weight: 700; }
.life-span-label { fill: #3d2a0c; font-weight: 700; pointer-events: none; }
/* the year timeline */
.tl-grid { stroke: var(--line); stroke-width: 1; }
.tl-label { fill: var(--text); font-weight: 600; }
.tl-seg { stroke: var(--surface); stroke-width: 1.5; }
.tl-fire { fill: #f3cf9a; } .tl-earth { fill: #ddd0ae; } .tl-air { fill: #ece6cc; } .tl-water { fill: #cfdcd6; }
.tl-text { fill: var(--text); font-weight: 600; pointer-events: none; }
.tl-hatch-line { stroke: var(--accent-strong); stroke-width: 2; }
.tl-today { stroke: #b23a2a; stroke-width: 1.6; stroke-dasharray: 3 2; }
.tl-today-text { fill: #b23a2a; font-weight: 700; }
.tl-chart { max-width: 760px; margin: var(--s2) auto; }
.tl-year { margin: var(--s3) 0 0; font-size: 1rem; }
.tl-key i { border: 1px solid var(--line); }
.tl-key .tl-key-fire { background: #f3cf9a; } .tl-key .tl-key-earth { background: #ddd0ae; }
.tl-key .tl-key-air { background: #ece6cc; } .tl-key .tl-key-water { background: #cfdcd6; }
.tl-key .tl-key-retro { background: repeating-linear-gradient(-45deg, var(--accent-strong) 0 2px, transparent 2px 5px); }
.tl-key .tl-key-today { width: 0; border: none; border-left: 2px dashed #b23a2a; height: 14px; border-radius: 0; }
/* the Moon today */
.moon-dark { fill: #4b4033; }
.moon-lit { fill: #f6e7b9; }
.moon-rim { fill: none; stroke: var(--accent); stroke-width: 1.5; }
.moon-today { display: flex; align-items: center; gap: var(--s4); }
.moon-disc { width: 96px; height: 96px; flex: none; }
.moon-tithi { font-weight: 700; font-size: 1.15rem; margin: 0 0 4px; }
.moon-today p { margin: 0 0 2px; }
.moon-inline { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; }

/* Share: a picture card of the result for WhatsApp and the like */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2); margin-top: var(--s3); }
.share-button { min-height: 44px; }
.share-whatsapp { min-height: 44px; }

/* The arts' opening motion (once, when an art first comes into view; usePlay adds .viz-play). Only transforms move,
   so a saved picture, which copies colours and sizes but not transforms, always shows the settled art. */
@media (prefers-reduced-motion: no-preference) {
  .viz-play .dial-hand { transform-box: fill-box; transform-origin: center; }
  .viz-play .viz-orbit, .viz-play .viz-turn, .viz-play .guna-sweep {
    transform-box: view-box; transform-origin: 180px 180px; }
  .viz-play .guna-sweep { transform-origin: 110px 112px; }
  /* the sky: each planet travels from 0° Aries round to its sign, its marker kept upright */
  .viz-play .viz-orbit { animation: viz-spin 1.6s cubic-bezier(.22, .8, .25, 1) both; animation-delay: calc(var(--i, 0) * 110ms); }
  .viz-play .viz-orbit .viz-upright { transform-box: fill-box; transform-origin: center;
    animation: viz-unspin 1.6s cubic-bezier(.22, .8, .25, 1) both; animation-delay: calc(var(--i, 0) * 110ms); }
  /* the Panchang clock: the blocks come in from sunrise round the day, then the hand sweeps from Midnight to now */
  .viz-play .dial-cg, .viz-play .dial-cg-name, .viz-play .dial-timing { transform-box: fill-box; transform-origin: center;
    animation: viz-pop .45s ease-out both; animation-delay: calc(var(--i, 0) * 50ms); }
  .viz-play .dial-hand { animation: viz-spin 1.8s cubic-bezier(.3, .7, .25, 1) both; animation-delay: .5s; }
  /* the guna meter: the needle sweeps up from 0 */
  .viz-play .guna-sweep { animation: viz-spin 1.4s cubic-bezier(.3, .7, .25, 1) both; animation-delay: .2s; }
  /* a planet's dignities: the ring turns a quarter and settles, then exalted, own, moolatrikona, debilitated */
  .viz-play .viz-turn { animation: viz-quarter 1.1s cubic-bezier(.25, .8, .25, 1) both; }
  .viz-play .viz-lit { transform-box: fill-box; transform-origin: center; animation: viz-pop-big .6s ease-out both;
    animation-delay: calc(1s + var(--i, 0) * 220ms); }
  /* the 27 nakshatras round the circle, this one last; the houses 1 to 12, this one last */
  .viz-play .viz-nak, .viz-play .viz-house { transform-box: fill-box; transform-origin: center;
    animation: viz-pop .4s ease-out both; animation-delay: calc(var(--i, 0) * 35ms); }
  .viz-play .viz-house { animation-delay: calc(var(--i, 0) * 80ms); }
  .viz-play .viz-nak.is-highlight, .viz-play .viz-house.is-highlight { animation: viz-pop-big .7s ease-out both; animation-delay: 1.1s; }
  /* the year: each bar grows through the months, then today's line drops in */
  .viz-play .tl-seg, .viz-play .tl-retro, .viz-play .life-band { transform-box: fill-box; transform-origin: left center;
    animation: viz-grow .8s ease-out both; animation-delay: calc(var(--i, 0) * 110ms); }
  .viz-play .tl-retro { animation-delay: .9s; }
  .viz-play .tl-text, .viz-play .life-span-label { transform-box: fill-box; transform-origin: center;
    animation: viz-pop .4s ease-out both; animation-delay: calc(var(--i, 0) * 110ms + .5s); }
  .viz-play [data-today], .viz-play [data-now]:not(.dial-hand) { animation: viz-drop .5s ease-out both; animation-delay: 1.3s; }
  /* the Moon: its light grows from new to today's phase */
  .viz-play .moon-grow { transform-box: fill-box; transform-origin: center; animation: moon-wax 1.4s ease-out both; }
}
@keyframes viz-spin { from { transform: rotate(var(--a, 0deg)); } to { transform: rotate(0deg); } }
@keyframes viz-unspin { from { transform: rotate(calc(var(--a, 0deg) * -1)); } to { transform: rotate(0deg); } }
@keyframes viz-quarter { from { transform: rotate(-90deg); } to { transform: rotate(0deg); } }
@keyframes viz-pop { from { transform: scale(.2); } to { transform: scale(1); } }
@keyframes viz-pop-big { 0% { transform: scale(.2); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes viz-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes viz-drop { from { transform: translateY(-16px); } to { transform: translateY(0); } }
@keyframes moon-wax { from { transform: scaleX(.05); } to { transform: scaleX(1); } }

/* Reference pages: In short and the quick-glance chips under the title */
.in-short { margin-top: var(--s2); }
.in-short p { margin: 0 0 var(--s2); max-width: 70ch; }
.chips { display: flex; flex-wrap: wrap; gap: 6px 8px; list-style: none; margin: 0; padding: 0; }
.chips li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; font-size: 0.9rem; }
.chip-k { color: var(--muted); margin-right: 2px; }

/* Festival calendar */
.fest-city { margin: var(--s2) 0; }
.fest-list { list-style: none; margin: 0; padding: 0; }
.fest-list li { display: grid; grid-template-columns: 4.5rem 1fr; gap: 2px var(--s2); padding: var(--s2) 0;
  border-top: 1px solid var(--line); }
.fest-list li:first-child { border-top: none; }
.fest-list li > .muted { grid-column: 2; font-size: 0.9rem; }
.fest-list .fest-festival a { font-weight: 700; }
/* this year: the days gone by dimmed, the months gone by folded, what comes next first */
.fest-list .fest-gone, .vrat-table .vrat-gone { opacity: 0.55; }
.card.fest-coming, .card.fest-next { border-left: 4px solid var(--accent); }
.fest-coming .fest-list li { grid-template-columns: 6.5rem 1fr; }
.fest-next p { margin: var(--s2) 0 0; }
.fest-next-name { font-size: 1.1rem; }
.vrat-fold .vrat-gone { display: none; }
.vrat-show { margin-bottom: var(--s3); }
.fest-earlier { margin-top: var(--s4); }
.fest-earlier > summary { padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  font-weight: 600; cursor: pointer; }
.fest-earlier[open] > summary { margin-bottom: var(--s4); }
.fest-when { font-size: 1.15rem; font-weight: 600; margin: 0 0 var(--s2); }
@media (min-width: 900px) { .fest-list li { grid-template-columns: 5rem 1fr auto; } .fest-list li > .muted { grid-column: auto; } }
.fest-today { margin: var(--s2) 0; font-weight: 600; }
.fest-upcoming { margin: var(--s3) 0; }
.fest-upcoming .fest-list li { grid-template-columns: 1fr; }
@media (min-width: 900px) { .fest-upcoming .fest-list li { grid-template-columns: 1fr auto; } }
@media (min-width: 900px) { .fest-coming .fest-list li { grid-template-columns: 6.5rem 1fr auto; } }
/* a vrat's dates on a phone: each row a small block, every value named by its column */
@media (max-width: 600px) {
  .vrat-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .vrat-table tr { display: block; padding: var(--s2) 0; border-bottom: 1px solid var(--line); }
  .vrat-table td { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s2); border: none; padding: 2px 0; }
  .vrat-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.85rem; }
  .vrat-table td[data-label="Name"] { font-weight: 600; }
}
/* the calendar's All / Festivals / Vrats choice: one joined control, only the chosen one filled */
.fest-show { display: inline-flex; width: fit-content; align-self: flex-start; margin-top: var(--s2); border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
  background: var(--surface); }
.fest-show button, .fest-show a { border: 0; border-radius: 0; min-height: 44px; padding: 8px 20px; background: transparent;
  font-weight: 600; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; }
.fest-show > * + * { border-left: 1px solid var(--line) !important; }
.fest-show button:hover, .fest-show a:hover { background: var(--accent-soft); }
.fest-show button[aria-pressed="true"], .fest-show a[aria-current="page"] { background: var(--accent-strong); color: #fff; }
/* the year and the kind side by side at the top, wrapping on a phone */
.fest-controls { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3); align-items: center; margin-top: var(--s2); }
.fest-controls .fest-show { margin-top: 0; }
/* ◀ [year] ▶: round arrow buttons around a plain text box that looks typed into */
.fest-year-pick { display: inline-flex; align-items: center; gap: 6px; }
.fest-year-pick button { min-height: 44px; min-width: 44px; padding: 0; border-radius: 999px; }
.fest-year-pick input { width: 6.5ch; min-height: 44px; padding: 0 10px; text-align: center; font-weight: 700; font-size: 1.05rem;
  background: #fff; border: 1px solid #c9b48c; border-radius: var(--radius-sm); box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: text; }
.fest-year-pick input:hover { border-color: var(--accent); }
.fest-year-pick input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
/* the printable calendar: numbered steps of chips beside a live preview that stays in view (on a phone the preview
   comes first and the download sticks to the foot of the screen) */
.fest-print { margin: var(--s2) 0 0; }
.pc-cal { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s4); margin-top: var(--s3); }
.pc-cal-preview { order: -1; min-width: 0; }
@media (min-width: 900px) {
  .pc-cal { grid-template-columns: 400px minmax(0, 1fr); align-items: start; }
  .pc-cal-preview { order: 0; position: sticky; top: var(--s3); }
}
.pc-cal-options fieldset { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  padding: var(--s3) var(--s4) var(--s4); margin: 0 0 var(--s3); min-width: 0; }
.pc-cal-options legend { font-weight: 700; font-size: 1.05rem; padding: 0 var(--s1); display: flex; align-items: center; gap: var(--s2); }
.pc-step { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-strong);
  color: #fff; font-size: 0.85rem; }
.pc-cal-city { margin: 0 0 var(--s2); }
.pc-cal-row { display: flex; align-items: center; gap: var(--s3); margin: var(--s2) 0; }
.pc-cal-label { font-weight: 600; font-size: 0.9rem; color: var(--muted); margin: var(--s3) 0 var(--s1); }
.pc-cal-row .pc-cal-label { margin: 0; }
.pc-cal-hint { margin: 0 0 var(--s2); font-size: 0.9rem; }
.pc-chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pc-chip { position: relative; display: inline-flex; cursor: pointer; }
.pc-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; padding: 0; }
.pc-chip > span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg); font-weight: 600; font-size: 0.92rem; line-height: 1.2; }
.pc-chip:hover > span { border-color: var(--accent); }
.pc-chip input:checked + span { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.pc-chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.pc-chip input:disabled + span { opacity: 0.45; cursor: not-allowed; }
/* the marker says what kind of choice it is: a dot for "choose one", a tick box for "choose any" */
.pc-chip > span::before { content: ""; flex: none; width: 16px; height: 16px; box-sizing: border-box; border: 2px solid var(--muted);
  background: var(--surface); display: inline-grid; place-items: center; font-size: 11px; font-weight: 900; line-height: 1; }
.pc-chip-one > span::before { border-radius: 50%; }
.pc-chip-any > span::before { border-radius: 4px; }
.pc-chip input:checked + span::before { border-color: #fff; }
.pc-chip-one input:checked + span::before { box-shadow: inset 0 0 0 3px var(--accent-strong); background: #fff; }
.pc-chip-any input:checked + span::before { content: "✓"; background: #fff; color: var(--accent-strong); }
/* a single yes/no option: a plain tick box on its own line */
.pc-cal-toggle { display: flex; align-items: flex-start; gap: var(--s2); margin-top: var(--s3); cursor: pointer; font-size: 0.92rem; }
.pc-cal-toggle input { width: 20px; height: 20px; flex: none; margin: 1px 0 0; accent-color: var(--accent-strong); }
.pc-cal-toggle span { color: var(--muted); }
.pc-cal-toggle b { color: var(--text); }
.pc-pick { font-weight: 400; font-size: 0.8rem; color: var(--muted); margin-left: 6px; padding: 1px 8px; border-radius: 999px;
  white-space: nowrap; display: inline-block;
  background: var(--bg); border: 1px solid var(--line); }
.pc-cal-hint .pc-pick { margin-left: 4px; }
.pc-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.8); flex: none; }
.pc-cal-more { border-top: 1px solid var(--line); padding: var(--s2) 0 0; margin-top: var(--s2); }
.pc-cal-more:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.pc-cal-more summary { cursor: pointer; font-weight: 600; padding: var(--s2) 0; }
.pc-cal-field { display: grid; gap: 2px; margin-bottom: var(--s2); }
.pc-cal-field label, .pc-cal-family label { display: grid; gap: 2px; font-size: 0.9rem; font-weight: 600; }
.pc-cal-field input, .pc-cal-family input { width: 100%; min-height: 40px; font-weight: 400; }
.pc-cal-count { font-size: 0.8rem; }
.pc-cal-family { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.pc-cal-family label:first-child { grid-column: 1 / -1; }
.pc-cal-family .error { grid-column: 1 / -1; margin: 0; }
.pc-cal-remove { justify-self: start; }
.pc-cal-more > .secondary { margin-top: var(--s3); }
.pc-cal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s3); }
.pc-cal-download { min-height: 44px; padding: 8px 22px; font-weight: 700; }
.pc-cal-summary { font-size: 0.9rem; }
.pc-cal-actions .error { flex-basis: 100%; margin: 0; }
@media (max-width: 899px) {
  /* the preview's parts join the page's column: the sheet first, the options, then the download bar stuck to the foot */
  .pc-cal-preview { display: contents; }
  .pc-cal-preview > * { order: -1; }
  .pc-cal-actions { order: 1; position: sticky; bottom: 0; z-index: 5; margin: 0 calc(-1 * var(--s3)); padding: var(--s2) var(--s3);
    background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -4px 12px rgba(60, 40, 10, 0.08); }
}
.pc-cal-sheet { width: 100%; overflow: hidden; border-radius: var(--radius); box-shadow: 0 6px 28px rgba(60, 40, 10, 0.18); }
.pc-cal-thumbs { display: flex; gap: var(--s2); overflow-x: auto; padding: var(--s2) 0; margin-top: var(--s2); scrollbar-width: thin; }
.pc-cal-thumbs button { flex: none; min-height: 36px; padding: 4px 12px; border-radius: 999px; white-space: nowrap; font-size: 0.85rem; }
.pc-cal-thumbs button[aria-pressed="true"] { background: var(--accent-strong); border-color: var(--accent-strong); color: #fff; }
.pc-cal-sample { margin: 0; }
.pc-cal-sample img { width: 100%; height: auto; display: block; border-radius: var(--radius); box-shadow: 0 6px 28px rgba(60, 40, 10, 0.18); }
.pc-cal-sample figcaption { margin-top: var(--s2); }
.pc-cal-about { margin-top: var(--s5); }
.pc-cal-about li { margin-bottom: var(--s2); }
.pc-cal-fest { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--s5); }
.pc-cal-fest li { padding: 4px 0; border-bottom: 1px dotted var(--line); break-inside: avoid; }
.pc-cal-fest b { display: inline-block; min-width: 4.5em; color: var(--accent-strong); }
@media (max-width: 600px) { .pc-cal-fest { columns: 1; } }
/* the QR landing page: two big choices, quick on a phone */
.pc-qr-big { display: flex; width: 100%; flex-direction: column; align-items: center; gap: 2px; font-size: 1.2rem; padding: var(--s4);
  margin: var(--s3) 0; text-align: center; border-radius: var(--radius); }
.pc-qr-big span { display: block; font-size: 0.95rem; font-weight: 400; margin-top: 4px; opacity: 0.9; }
.pc-qr-today h2 { font-size: 1.1rem; margin-bottom: var(--s1); }
.pc-qr-today p { margin: 0; }

/* the contact page's form */
.contact-form { display: grid; gap: var(--s3); max-width: 560px; padding: var(--s4); }
.contact-form h2 { margin: 0; }
.contact-form label { display: grid; gap: 4px; font-weight: 600; font-size: 0.92rem; }
.contact-form :is(input, textarea) { font: inherit; font-weight: 400; }
.contact-form button { justify-self: start; }
.contact-sent { max-width: 560px; padding: var(--s4); font-weight: 600; }

/* the support page: one card — the QR code and UPI ID on one side, the reasons on the other (stacked on a phone) */
.site-article:has(.support-box) { max-width: 960px; }
.support-box { display: grid; grid-template-columns: auto 1fr; gap: var(--s5, 32px); align-items: center; padding: var(--s5, 32px); }
.support-pay-side { display: grid; justify-items: center; gap: var(--s3); text-align: center; padding-right: var(--s5, 32px);
  border-right: 1px solid var(--line); }
.support-qr { margin: 0; display: grid; justify-items: center; gap: 8px; }
.support-qr img, .support-qr-wait { width: 240px; height: 240px; border-radius: 14px; background: #fff; padding: 10px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.08); }
.support-qr figcaption { font-size: 0.85rem; color: var(--muted); max-width: 240px; }
.support-id { display: grid; justify-items: center; gap: 6px; }
.support-id strong { font-size: 1.05rem; word-break: break-all; }
.support-pay { display: inline-block; padding: 11px 24px; border-radius: 999px; background: var(--accent); color: #fff;
  font-weight: 700; text-decoration: none; }
.support-why { display: grid; gap: var(--s3); align-content: center; }
.support-why h2 { margin: 0; font-size: 1.25rem; }
.support-free { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft, #f6ead2);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); font-weight: 600; line-height: 1.45; }
.support-free span { color: var(--good, #15803d); font-weight: 800; margin-right: 4px; }
.support-why .support-items { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.support-items li { display: grid; gap: 6px; align-content: start; padding: 14px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--surface, #fff); }
.support-items h3 { margin: 0; font-size: 0.98rem; }
.support-items p { margin: 0; font-size: 0.86rem; color: var(--muted); line-height: 1.4; }
.support-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-size: 1.15rem;
  background: var(--accent-soft, #f6ead2); color: var(--accent); }
.support-thanks { margin: 0; font-weight: 700; font-size: 1.05rem; }
.support-note { margin: 0; font-size: 0.78rem; color: var(--muted); }
.support-amounts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; max-width: 300px; }
.support-box .support-amount { padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: transparent;
  color: var(--text); font: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer; min-height: 0; }
.support-generous { flex-basis: 100%; text-align: center; margin-top: 4px; font-size: 0.78rem; font-weight: 700;
  color: var(--muted); }
.support-box .support-amount.big { border-style: dashed; }
.support-box .support-amount:hover { border-color: var(--accent); color: var(--accent); }
.support-box .support-amount.chosen { background: var(--accent); border-color: var(--accent); color: #fff; }
/* a mouse-and-screen computer cannot open a UPI app: the QR code is the way there */
@media (hover: hover) and (pointer: fine) { .support-pay { display: none; } }
@media (max-width: 760px) {
  .support-box { grid-template-columns: 1fr; padding: var(--s4); }
  .support-items { grid-template-columns: 1fr; }
  .support-pay-side { padding: 0 0 var(--s4); border-right: 0; border-bottom: 1px solid var(--line); }
}
.about-support { font-weight: 600; }

/* every picture: a "post-ready" mark; after a download, a word of thanks and, the first time, a little confetti */
.post-ready { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  background: var(--accent-soft, #f6ead2); color: var(--accent, #8a5c0f); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.02em; cursor: help; white-space: nowrap; }
.share-cheer { flex-basis: 100%; font-weight: 600; color: var(--text); font-size: 0.86rem; }
.share { position: relative; }
.confetti { position: absolute; left: 50%; top: 0; pointer-events: none; }
.confetti i { position: absolute; font-style: normal; font-size: 1.1rem; opacity: 0;
  animation: confetti-pop 1.6s ease-out forwards; animation-delay: calc(var(--i) * 40ms);
  --dx: calc((var(--i) - 3.5) * 22px); }
@keyframes confetti-pop {
  0% { transform: translate(0, 0) scale(0.6); opacity: 1; }
  100% { transform: translate(var(--dx), -70px) scale(1.1) rotate(25deg); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* /creators/: today's posts ready-made, the week ahead, everything you can post */
.creators-hero { display: grid; grid-template-columns: 1fr auto; gap: var(--s5, 32px); align-items: center; }
.creators-hero-card { width: 280px; height: 280px; border-radius: 18px; box-shadow: 0 10px 30px rgb(0 0 0 / 0.12);
  transform: rotate(2deg); }
.kit-zip { margin-top: var(--s3); padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem; }
.kit-zipped { font-weight: 600; margin: var(--s2) 0 0; }
.creators-steps ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: step; }
.creators-steps li { counter-increment: step; display: flex; gap: 10px; align-items: center; }
.creators-steps li::before { content: counter(step); display: grid; place-items: center; width: 28px; height: 28px;
  border-radius: 50%; border: 2px solid var(--accent); color: var(--accent); font-weight: 700; flex: none; }
.creators-steps li.done::before { content: "✓"; background: var(--accent); color: #fff; }
.creators-steps li.soon { color: var(--muted); }
.creators-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s3); }
.creators-head .kit-zip { margin-top: 0; }
.kit-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--s4); }
.kit-card { margin: 0; display: grid; gap: 8px; }
.kit-card img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.kit-card .share { flex-wrap: wrap; }
.week-strip { margin: 0; padding: 0; list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr);
  gap: var(--s4); overflow-x: auto; padding-bottom: 8px; }
.week-strip h3 { margin: 0 0 6px; font-size: 0.95rem; }
.catalog-group h3 { margin: var(--s4) 0 var(--s2); font-size: 1rem; }
.catalog-group ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px; }
.catalog-group a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 12px; color: var(--text); text-decoration: none; }
.catalog-group a:hover { border-color: var(--accent); background: var(--accent-soft); }
.catalog-group a > span:last-child { display: grid; }
.catalog-group .muted { font-size: 0.82rem; }
.catalog-glyph { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: var(--accent-soft); color: var(--accent); font-size: 1.1rem; }
.home-creators { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s5, 32px); border-radius: 18px; background: var(--accent-soft, #f6ead2); }
.home-creators h2 { margin: 0 0 6px; }
.home-creators p { margin: 0; }
@media (max-width: 760px) {
  .creators-hero { grid-template-columns: 1fr; }
  .creators-hero-card { width: 220px; height: 220px; justify-self: center; }
}
/* on the creators page every card is post-ready: the chip would only crowd the buttons under each card */
.kit-card .post-ready { display: none; }
.kit-card .share { gap: 6px; }
.kit-card .share-button { padding: 6px 12px; font-size: 0.85rem; }

/* /creator/<username>/: an astrologer's portfolio */
.pf { display: grid; gap: var(--s4); }
.pf-hero { display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap; }
.pf-hero h1 { margin: 0; }
.pf-photo { width: 128px; height: 128px; border-radius: 50%; object-fit: cover; flex: none; }
.pf-initials { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 44px; font-weight: 700; }
.pf-chips { list-style: none; padding: 0; margin: var(--s2) 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.pf-chips li { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-size: 14px; }
.pf-meta { margin: 0; }
.pf-buttons { display: flex; flex-wrap: wrap; gap: var(--s2); }
.site .pf-buttons button.pf-wa { background: #1a8f47; border-color: #1a8f47; color: #fff; } /* WhatsApp's green, AA with white */
.site .pf-buttons button.pf-wa:hover:not(:disabled) { background: #157a3c; border-color: #157a3c; }
.site .pf-foot .pf-report-link { justify-self: start; font-size: 14px; }
.pf-services { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s2); }
.pf-services li { display: flex; justify-content: space-between; gap: var(--s3); border-bottom: 1px solid var(--line); padding-bottom: var(--s2); }
.pf-services p { margin: 2px 0 0; }
.pf-price { display: grid; text-align: right; flex: none; }
.pf-reels { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--s2); }
.pf-reels a { display: block; padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); }
.pf-foot { display: grid; gap: var(--s2); }
.pf-report { display: grid; gap: var(--s2); }
.pf-report fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s1); }
.pf-report label { display: grid; gap: var(--s1); }
.pf-report label.inline { display: flex; align-items: center; gap: var(--s2); }
@media (max-width: 639px) {
  .pf-photo { width: 96px; height: 96px; }
  .pf-buttons > button { flex: 1 1 100%; }
}
.pf-owner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin: 0 0 var(--s3);
  padding: var(--s2) var(--s3); border: 1px dashed var(--accent); border-radius: var(--radius); background: var(--accent-soft); }
.creators-studio-cta { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap;
  border-color: var(--accent); background: var(--accent-soft); }
.creators-studio-cta h2, .creators-studio-cta p { margin: 0 0 4px; }
.site-studio { font-weight: 600; }
/* /creators/: the link in bio (with a small phone picture of one) and the Creator Studio */
.creators-bio { display: grid; gap: var(--s4); align-items: center; }
@media (min-width: 800px) { .creators-bio { grid-template-columns: minmax(0, 1fr) 240px; } }
.creators-bio h2, .creators-studio h2 { margin-top: 0; }
.creators-ticks { list-style: none; padding: 0; margin: var(--s3) 0; display: grid; gap: 8px; }
.creators-ticks li { padding-left: 26px; position: relative; }
.creators-ticks li::before { content: "✓"; position: absolute; left: 0; color: #1a8f47; font-weight: 700; }
.creators-bio-phone { justify-self: center; width: 220px; padding: 22px 16px; border: 6px solid var(--text); border-radius: 28px;
  background: var(--surface); display: grid; gap: 10px; justify-items: center; box-shadow: 0 12px 30px rgba(0, 0, 0, .12); }
.creators-bio-avatar { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 26px;
  background: var(--accent-soft); color: var(--accent); }
.creators-bio-name { width: 110px; height: 12px; border-radius: 6px; background: var(--text); opacity: .8; }
.creators-bio-line { width: 150px; height: 8px; border-radius: 4px; background: var(--line); }
.creators-bio-chips { display: flex; gap: 6px; }
.creators-bio-chips i { width: 44px; height: 16px; border-radius: 999px; border: 1px solid var(--line); }
.creators-bio-wa { width: 100%; text-align: center; padding: 8px; border-radius: 10px; background: #1a8f47; color: #fff; font-weight: 700; font-size: 14px; }
.creators-bio-btn { width: 100%; height: 34px; border-radius: 10px; border: 1px solid var(--line); }
.creators-bio-url { font-size: 11px; color: var(--accent); text-align: center; word-break: break-all; }
.creators-features { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: var(--s3) 0; }
.creators-features div { padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); }
.creators-features dt { font-weight: 700; margin-bottom: 4px; }
.creators-features dd { margin: 0; color: var(--muted); font-size: 0.92rem; }
.creators-studio > a { justify-self: start; display: inline-block; width: auto; }
/* /shubh-muhurat/ */
.muhurat-grid { display: grid; gap: var(--s4); }
@media (min-width: 800px) { .muhurat-grid { grid-template-columns: 1fr 1fr; } }
.muhurat-list { list-style: none; margin: 0 0 var(--s3); padding: 0; display: grid; gap: 6px; }
.muhurat-list li { display: flex; flex-wrap: wrap; gap: 4px var(--s2); align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--line); }
.muhurat-list li > span:first-of-type { margin-left: auto; font-variant-numeric: tabular-nums; }
.ai-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.pc-summary { margin: var(--s2) 0 0; padding: var(--s3); border-left: 4px solid var(--accent); background: var(--accent-soft);
  border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600; }
/* the panchang's key times, right under the glance: auspicious beside avoided */
.pc-keytimes { display: grid; gap: var(--s4); }
@media (min-width: 700px) { .pc-keytimes { grid-template-columns: 1fr 1fr; } }
.pc-top { display: grid; gap: var(--s4); align-items: start; }
@media (min-width: 1000px) {
  .pc-top { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  .pc-top .pc-keytimes { grid-template-columns: 1fr; }
}
.fest-table { width: 100%; border-collapse: collapse; }
.fest-table th, .fest-table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.fest-table thead th { font-size: 0.85rem; color: var(--muted); }
.fest-table tbody th { white-space: nowrap; width: 1%; padding-right: var(--s3); }
/* the daily pages' invitation to creators */
.creator-strip { margin: var(--s3) 0; padding: var(--s2) var(--s3); border: 1px dashed var(--accent); border-radius: var(--radius);
  background: var(--accent-soft); display: flex; flex-wrap: wrap; gap: 4px var(--s2); align-items: center; font-size: 0.95rem; }
.creator-strip a { font-weight: 700; }

/* The login strip above a public form, for visitors (site/LoginStrip.tsx): one line and Google's button */
.login-strip { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s6); margin: 0 0 var(--s4);
  padding: var(--s3) var(--s4); background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.login-strip-text { flex: 1 1 320px; min-width: 0; }
.login-strip-text p { margin: 0; }
.login-strip-title { font-family: var(--site-head); font-weight: 600; font-size: 1.1rem; }
.login-strip-title::before { content: "✦ "; color: var(--accent); }
.login-strip-note { color: var(--muted); font-size: 0.9rem; }
.login-strip-action { flex: 0 0 280px; display: flex; justify-content: flex-end; }
.login-strip-action .google-button { width: 280px; }
.login-strip-action button { min-height: 40px; border-radius: 999px; padding: 8px 22px; font-weight: 600; }
@media (max-width: 639px) {
  .login-strip-action { flex-basis: 100%; justify-content: stretch; }
  .login-strip-action .google-button, .login-strip-action button { width: 100%; }
}
/* in the home hero's card: a smaller strip on top, the button under the text */
.login-strip.compact { margin: 0 0 var(--s3); gap: var(--s2); padding: var(--s3); }
.login-strip.compact .login-strip-title { font-size: 1rem; }
.login-strip.compact .login-strip-note { font-size: 0.85rem; }
.login-strip.compact .login-strip-action { flex-basis: 100%; justify-content: stretch; }
.login-strip.compact .login-strip-action .google-button, .login-strip.compact .login-strip-action button { width: 100%; }

/* a daily page's day, after its H1 (site/DatedH1.tsx) */
.h1-date { font-weight: 500; color: var(--muted); }
/* the Panchang year page's picker for the years outside the listed window */
.year-pick { display: inline-flex; align-items: center; gap: var(--s2); }
.year-pick select { width: auto; }

/* a city's own Panchang: its sunrise against New Delhi's; the cities' index by state (PanchangPage.tsx) */
.pc-city-note { margin: 0; color: var(--muted); }
.pc-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s2) var(--s6); }
.pc-cities h2 { font-size: 1.05rem; margin: var(--s2) 0; }

/* /learn-astrology/: the path, one card per step (site/pages/LearnAstrologyPage.tsx) */
.learn-steps { list-style: none; padding: 0; margin: 0 0 var(--s6); display: grid; gap: var(--s3); }
.learn-steps li { display: grid; gap: var(--s2); }
.learn-steps h2, .learn-steps p { margin: 0; }
.learn-links a { font-weight: 600; }

/* the home's AI astrology section: what a reading gives beside the app itself, what it reads beside the chart, the
   three steps, and its questions */
.home-ai .ai-row { display: grid; gap: var(--s6); align-items: center; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  margin-bottom: calc(var(--s6) * 1.5); }
.home-ai .ai-row-flip { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.home-ai h2 { margin: var(--s1) 0 var(--s3); font-size: clamp(1.6rem, 3.2vw, 2.2rem); line-height: 1.2; }
.home-ai .ai-h { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.ai-lede { margin: 0 0 var(--s4); max-width: 60ch; color: var(--muted); font-size: 1.05rem; }
.ai-points { list-style: none; padding: 0; margin: 0 0 var(--s5, var(--s4)); display: grid; gap: var(--s4); }
.ai-points li { display: grid; grid-template-columns: 60px 1fr; gap: var(--s3); align-items: center; }
/* the site's drawings, small: a 200-unit drawing at 52px needs heavier lines to show */
.ai-point-art { width: 60px; height: 60px; padding: 4px; border-radius: 16px; background: var(--surface);
  border: 1px solid var(--line); }
.ai-point-art .art-line { stroke-width: 6; }
.ai-points h3 { margin: 2px 0 2px; font-size: 1.02rem; }
.ai-points p { margin: 0; color: var(--muted); }
.ai-cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
.ai-cta .primary-button { padding: 12px 20px; font-size: 1rem; }
/* the app's own screens, faded out at the bottom where the crop ends: a life reading on a wide screen, and on a phone
   the phone screen */
.ai-shots { display: flex; justify-content: center; }
.ai-shot { display: block; height: auto; border-radius: 12px; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px -12px rgba(30, 20, 60, 0.28); background: var(--surface);
  -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
.ai-shot-wide { width: 100%; }
.ai-shot-phone { display: none; width: min(300px, 80%); border-radius: 18px; }
/* the app in a browser window with a phone over its corner, as the features page opens (landing.css .lp-hero-shots) */
.ai-device { position: relative; padding: 0 9% 7% 0; min-width: 0; }
.ai-window { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 12px 32px -12px rgba(30, 20, 60, 0.28); }
.ai-window-bar { display: flex; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ai-window-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.ai-window img, .ai-handset img { display: block; width: 100%; height: auto; }
.ai-handset { position: absolute; right: 0; bottom: 0; width: clamp(80px, 23%, 170px); overflow: hidden;
  border: clamp(4px, 0.8vw, 8px) solid #1c2430; border-radius: clamp(14px, 2.4vw, 26px);
  box-shadow: 0 12px 32px -10px rgba(30, 20, 60, 0.4); }
.ai-see { margin-bottom: var(--s5, var(--s4)); }
.ai-steps-title { margin: var(--s4) 0 var(--s3); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.ai-steps { list-style: none; padding: 0; margin: 0; counter-reset: ai-step; display: grid; gap: var(--s3); }
.ai-steps li { counter-increment: ai-step; display: grid; grid-template-columns: 32px 1fr; column-gap: var(--s3); }
.ai-steps li::before { content: counter(ai-step); grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--accent); color: var(--accent-text); font-weight: 700; }
.ai-steps span { color: var(--muted); }
@media (max-width: 820px) {
  .home-ai .ai-row, .home-ai .ai-row-flip { grid-template-columns: 1fr; }
  .ai-row-flip .ai-device { order: 2; }
  /* a phone shows the phone screen, not a desktop one shrunk */
  .ai-shot-wide { display: none; }
  .ai-shot-phone { display: block; }
}

/* a vrat's named days through the year (/vrat/<vrat>/): name and line, two columns where there is room */
.vrat-kinds { display: grid; gap: var(--s3) var(--s5, var(--s4)); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 0 0 var(--s3); }
.vrat-kinds dt { font-weight: 700; }
.vrat-kinds dd { margin: 2px 0 0; }
.z-section h2 + p, .z-section ol + h3, .z-section p + h3, .z-section p + h2, .z-section dl + h2 { margin-top: var(--s4); }
.ekadashi-year th[scope="row"] { font-weight: 600; text-align: left; white-space: nowrap; }
