/* ==========================================================================
   Jyoti SEO engine pages (docs/SEO_PROGRAM.md WP3): panchang, festivals,
   muhurat. Plain CSS, no framework, no build step. Same visual language as
   static/kundli.css (dark night-sky ground, gold accents, the same topbar
   brand markup) so the free tools and these engine pages read as one
   product, but this file is self-contained: it does not depend on
   kundli.css being loaded first.
   ========================================================================== */

:root {
  --pc-navy-deep: #0E1329;
  --pc-navy-mid: #141B3D;
  --pc-navy-late: #1A2149;
  --pc-cream: #EFEAE0;
  --pc-text-muted: #C6C4D6;
  --pc-gold: #E0A63E;
  --pc-gold-light: #F0C878;
  --pc-cta-a: #EBB554;
  --pc-cta-b: #D99C33;
  --pc-cta-hover-a: #F2C267;
  --pc-cta-hover-b: #E0A63E;
  --pc-cta-text: #241A05;
  --pc-card-bg: #FFFDF8;
  --pc-card-text: #2A2620;
  --pc-card-muted: #6E6857;
  --pc-border: rgba(240, 200, 120, .22);
  --pc-good: #3E8F5C;
  --pc-bad: #B23A3A;

  --font-heading: 'Martel', serif;
  --font-body: 'Mukta', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  min-height: 100%;
  background: linear-gradient(178deg, var(--pc-navy-deep) 0%, var(--pc-navy-mid) 55%, var(--pc-navy-late) 100%);
  color: var(--pc-cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  position: relative;
}

a { color: var(--pc-gold-light); text-decoration: none; }
a:hover { text-decoration: underline; color: #F6D89A; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--pc-gold);
  color: var(--pc-cta-text);
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 10;
  font-weight: 700;
}
.skip-link:focus { left: 0; }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--pc-gold);
  outline-offset: 2px;
}

#sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(rgba(240, 200, 120, .5) 1px, transparent 1.6px),
    radial-gradient(rgba(240, 200, 120, .28) 1px, transparent 1.6px);
  background-size: 140px 140px, 90px 90px;
  background-position: 0 0, 45px 60px;
  opacity: .5;
}

/* ============ Top bar (matches static/kundli.html's brand markup) ============ */

.topbar {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 24px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.topbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--pc-cream);
}
.topbar-brand:hover { text-decoration: none; }
.topbar-mark { width: 30px; height: 30px; flex: none; }
.topbar-word {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .01em;
  color: var(--pc-cream);
}
.topbar-word-io { color: var(--pc-gold); }

.topnav { flex: 1 1 auto; min-width: 200px; }
.topnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}
.topnav a {
  color: var(--pc-text-muted);
  font-size: 14px;
  font-weight: 600;
}
.topnav a:hover { color: var(--pc-gold-light); }

.lang-switch { display: flex; gap: 6px; }
.lang-pill {
  border: 1px solid var(--pc-border);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--pc-text-muted);
}
.lang-pill.active { background: var(--pc-gold); color: var(--pc-cta-text); border-color: var(--pc-gold); }
.lang-pill:hover { text-decoration: none; color: var(--pc-cream); }

.breadcrumbs {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 10px auto 0;
  padding: 0 24px;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  font-size: 12.5px;
  color: var(--pc-text-muted);
}
.breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--pc-border); }
.breadcrumbs [aria-current="page"] { color: var(--pc-cream); }

/* ============ Page body ============ */

.pageWrap {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 24px 60px;
}

h1 {
  font-family: var(--font-heading);
  font-size: 30px;
  line-height: 1.2;
  margin: 12px 0 10px;
  color: var(--pc-cream);
}
h2 { font-family: var(--font-heading); font-size: 19px; margin: 0 0 12px; color: var(--pc-gold-light); }
h3 { font-size: 15px; margin: 16px 0 6px; color: var(--pc-text-muted); }

.lead { font-size: 16px; line-height: 1.6; color: var(--pc-text-muted); margin: 0 0 24px; }

.card {
  background: var(--pc-card-bg);
  color: var(--pc-card-text);
  border-radius: 14px;
  padding: 22px 24px;
  margin: 0 0 20px;
}
.card h2 { color: var(--pc-card-text); }
.card a { color: #8A5D14; }

.factGrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px 20px;
  margin: 0 0 16px;
}
.factGrid dt { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--pc-card-muted); margin: 0; }
.factGrid dd { font-size: 16px; font-weight: 700; margin: 2px 0 0; }

.segList, .chogList, .windowList, .festList, .cityGrid, .eventGrid, .monthGrid {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}
.segList li, .windowList li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.chogList { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 6px 14px; }
.chogList li { padding: 6px 10px; border-radius: 8px; font-size: 13.5px; }
.chog-good { background: rgba(62, 143, 92, .12); color: var(--pc-good); }
.chog-bad { background: rgba(178, 58, 58, .1); color: var(--pc-bad); }

.cityGrid, .eventGrid, .monthGrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px 14px;
}
.cityGrid a.active { font-weight: 700; text-decoration: underline; }

.festList li { padding: 8px 0; border-bottom: 1px solid rgba(0,0,0,.08); }
.festDate { display: inline-block; min-width: 140px; color: var(--pc-card-muted); font-size: 13.5px; }

.dateNav, .monthNav, .yearNav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--pc-text-muted);
  margin: 0 0 18px;
  font-size: 14px;
}

.muhurtaDate { padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,.1); }
.muhurtaDate:last-child { border-bottom: none; }

.explainer p { line-height: 1.7; color: var(--pc-text-muted); }
.explainer.card p { color: var(--pc-card-text); }

.faq details {
  border-bottom: 1px solid rgba(0,0,0,.1);
  padding: 10px 0;
}
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 8px 0 0; line-height: 1.6; }

.anchorNote { color: var(--pc-text-muted); font-size: 13.5px; }
.personalize { color: var(--pc-text-muted); font-size: 13.5px; }

/* ============ Buttons + CTA (shared with static/kundli.css) ============ */

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  padding: 12px 22px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary { background: linear-gradient(180deg, var(--pc-cta-a), var(--pc-cta-b)); color: var(--pc-cta-text); }
.btn-primary:hover { text-decoration: none; background: linear-gradient(180deg, var(--pc-cta-hover-a), var(--pc-cta-hover-b)); }
.btn-secondary { background: transparent; color: var(--pc-gold-light); border: 1px solid var(--pc-gold); }
.btn-secondary:hover { background: rgba(240, 200, 120, .1); text-decoration: none; }

.site-footer {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 30px 24px 40px;
  text-align: center;
  border-top: 1px solid var(--pc-border);
}
.footer-wa { margin: 0 0 16px; }
.footer-tagline { color: var(--pc-text-muted); font-size: 13.5px; margin: 0 0 16px; }
.footer-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin: 0 0 16px;
  padding: 0;
}
.footer-nav a { color: var(--pc-text-muted); font-size: 13px; }
.footer-company { color: #7C7A92; font-size: 12px; margin: 0; }

@media (max-width: 640px) {
  .topbar { padding: 16px 16px 0; }
  .pageWrap { padding: 18px 16px 48px; }
  h1 { font-size: 24px; }
}
