/* ============================================================
   Mukh Darpan — Content Page Stylesheet
   Shared by all static SEO/AEO content pages (/faq, /what-is-samudrik-shastra, etc.)
   Mirrors the color system + typography of the main app (public/index.html)
   so these pages feel like part of Mukh Darpan, not a bolted-on blog.
   Does NOT affect / is NOT loaded by the main app.
   ============================================================ */

:root {
  --gold: #C9A84C;
  --gold-l: #E8C97A;
  --gold-d: #8A6D2F;
  --deep: #06050F;
  --s1: #0D0B1A;
  --s2: #141228;
  --s3: #1C1935;
  --b0: rgba(201, 168, 76, .12);
  --b1: rgba(201, 168, 76, .28);
  --b2: rgba(201, 168, 76, .55);
  --txt: #EDE8D5;
  --muted: #7A7468;
  --dim: #4A4540;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--txt);
  font-family: 'Crimson Pro', Georgia, serif;
  font-size: 17px;
  line-height: 1.75;
  min-height: 100vh;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 10% 20%, rgba(201, 168, 76, .35) 0%, transparent 100%),
    radial-gradient(1px 1px at 30% 70%, rgba(255, 255, 255, .12) 0%, transparent 100%),
    radial-gradient(1px 1px at 60% 15%, rgba(255, 255, 255, .08) 0%, transparent 100%),
    radial-gradient(1px 1px at 80% 50%, rgba(201, 168, 76, .18) 0%, transparent 100%),
    radial-gradient(2px 2px at 70% 80%, rgba(201, 168, 76, .12) 0%, transparent 100%);
  pointer-events: none;
  z-index: 0;
}

.wrap { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 0 20px 60px; }

/* Top bar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--b0); margin-bottom: 8px;
}
.brand { font-family: 'Cinzel', serif; font-size: 15px; letter-spacing: .12em; color: var(--gold-l); text-decoration: none; }
.brand span { color: var(--muted); font-family: 'Crimson Pro', serif; font-size: 12px; letter-spacing: 0; margin-left: 6px; }
.top-actions { display: flex; align-items: center; gap: 14px; }
.lang-toggle {
  background: var(--s2); border: 1px solid var(--b1); border-radius: 8px;
  padding: 5px 10px; font-size: 12px; color: var(--txt); cursor: pointer; font-family: inherit;
}
.top-cta {
  background: var(--gold); color: var(--deep); font-family: 'Cinzel', serif;
  font-size: 11px; letter-spacing: .08em; padding: 8px 14px; border-radius: 8px;
  text-decoration: none; white-space: nowrap;
}

/* Breadcrumb */
.crumb { font-size: 12px; color: var(--dim); margin: 18px 0 6px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--gold-l); }

/* Headings */
h1 {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 30px; line-height: 1.3;
  color: var(--gold-l); letter-spacing: .01em; margin: 10px 0 14px;
}
h2 {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 20px; color: var(--gold-l);
  letter-spacing: .02em; margin: 34px 0 12px;
}
h3 {
  font-family: 'Cinzel', serif; font-weight: 600; font-size: 16px; color: var(--gold);
  letter-spacing: .02em; margin: 22px 0 8px;
}

.dek { font-size: 17px; color: var(--muted); font-style: italic; margin-bottom: 22px; }
.meta-row { font-size: 12px; color: var(--dim); margin-bottom: 24px; }

p { margin: 0 0 16px; color: var(--txt); }
ul, ol { margin: 0 0 16px 22px; color: var(--txt); }
li { margin-bottom: 6px; }
a { color: var(--gold-l); }
strong { color: var(--gold-l); font-weight: 600; }

/* Answer / definition box — first-paragraph pattern for AI extraction */
.answer-box {
  background: var(--s1); border: 1px solid var(--b1); border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 18px 20px; margin: 0 0 26px; font-size: 17px;
}

/* Tables */
.tbl-wrap { overflow-x: auto; margin: 0 0 22px; border: 1px solid var(--b1); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--b0); }
th { background: var(--s2); color: var(--gold-l); font-family: 'Cinzel', serif; font-size: 12px; letter-spacing: .05em; }
tr:last-child td { border-bottom: none; }

/* FAQ accordion */
.faq-item { background: var(--s1); border: 1px solid var(--b1); border-radius: 10px; margin-bottom: 10px; overflow: hidden; }
.faq-q {
  padding: 15px 18px; cursor: pointer; font-family: 'Cinzel', serif; font-size: 14px;
  color: var(--gold-l); display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-q::after { content: '+'; color: var(--gold); font-size: 18px; flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }
.faq-a { max-height: 0; overflow: hidden; padding: 0 18px; color: var(--muted); transition: all .25s ease; }
.faq-item.open .faq-a { max-height: 600px; padding: 0 18px 16px; }

/* Card grid (feature/trait tiles) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 0 0 22px; }
.card {
  background: var(--s1); border: 1px solid var(--b1); border-radius: 12px; padding: 16px;
}
.card h3 { margin-top: 0; font-size: 14px; }
.card p { font-size: 14px; color: var(--muted); margin-bottom: 0; }

/* Disclaimer */
.disclaimer {
  font-size: 12px; color: var(--dim); border-top: 1px solid var(--b0); padding-top: 14px; margin-top: 30px;
}

/* CTA block */
.cta-block {
  background: linear-gradient(135deg, var(--s1), var(--s2)); border: 1px solid var(--b1);
  border-radius: 16px; padding: 26px 22px; text-align: center; margin: 36px 0;
}
.cta-block h2 { margin-top: 0; }
.cta-block p { color: var(--muted); }
.btn-p {
  display: inline-block; background: var(--gold); color: var(--deep); font-family: 'Cinzel', serif;
  font-size: 13px; letter-spacing: .06em; padding: 12px 26px; border-radius: 10px;
  text-decoration: none; margin-top: 6px;
}

/* Related links */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 30px; }
.related a {
  font-size: 13px; background: var(--s2); border: 1px solid var(--b1); border-radius: 8px;
  padding: 8px 12px; text-decoration: none; color: var(--txt);
}
.related a:hover { border-color: var(--gold); color: var(--gold-l); }

/* Footer */
.foot {
  text-align: center; padding: 20px 0 10px; border-top: 1px solid var(--b0); margin-top: 20px;
}
.foot a, .foot span { font-size: 11px; color: var(--dim); margin: 0 8px; text-decoration: none; }
.foot a:hover { color: var(--gold-l); }

/* Language show/hide */
[data-hi] { display: none; }
html[lang="hi"] [data-en] { display: none; }
html[lang="hi"] [data-hi] { display: inline; }
html[lang="hi"] [data-hi].block { display: block; }

@media (max-width: 480px) {
  h1 { font-size: 24px; }
  .wrap { padding: 0 16px 50px; }
}
