/* Styles for the static blog pages generated by scripts/build-blog.mjs.
   Uses the same palette and type as the main site. */

:root {
  --navy: #0b2a4a; --navy-2: #123a63; --teal: #0e9f9d; --teal-2: #0b8583; --teal-soft: #e3f5f4;
  --sun: #f7931e; --sun-2: #e07f0a; --sun-soft: #fff1dc;
  --ink: #142032; --muted: #5f6f82; --line: #e2e8f0; --paper: #ffffff; --cloud: #f5f8fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--paper); color: var(--ink); font-family: 'Manrope', system-ui, sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.6; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: 'Sora', 'Manrope', sans-serif; letter-spacing: -.02em; line-height: 1.2; color: var(--navy); }

.wrap { width: min(1180px, calc(100% - 64px)); margin: 0 auto; }
.wrap.narrow { width: min(760px, calc(100% - 64px)); }

/* top strip + header */
.strip { display: flex; justify-content: space-between; gap: 12px; padding: 8px 4%; background: var(--navy); font-size: 12px; font-weight: 800; }
.strip a { color: white; text-decoration: none; }
.strip a:hover { color: #ffd166; }
.strip .strip-phone { color: #ffd166; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 76px; }
.brand img { height: 52px; width: auto; }
.header-nav { display: flex; gap: 22px; margin-left: auto; }
.header-nav a { text-decoration: none; font-size: 14px; font-weight: 700; color: #3b4a5c; }
.header-nav a:hover, .header-nav a.active { color: var(--teal-2); }
.header-cta { text-decoration: none; background: var(--sun); color: #1a1200; font-weight: 800; font-size: 14px; padding: 11px 18px; border-radius: 10px; white-space: nowrap; }
.header-cta:hover { background: var(--sun-2); }
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--cloud); flex: none; }
.lang-switch a { text-decoration: none; font-family: 'Manrope', 'Noto Sans Devanagari', sans-serif; font-size: 13px; font-weight: 800; line-height: 1; color: #6b7a8c; padding: 7px 11px; border-radius: 999px; }
.lang-switch a:hover { color: var(--navy); }
.lang-switch a.active { background: var(--navy); color: white; }

/* shared bits */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-2); }
.chip { display: inline-block; text-decoration: none; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--sun-2); background: var(--sun-soft); padding: 5px 10px; border-radius: 999px; }
.lede { font-size: 18px; color: var(--muted); margin: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 800; font-size: 14px; padding: 13px 20px; border-radius: 10px; }
.btn-primary { background: var(--sun); color: #1a1200; }
.btn-primary:hover { background: var(--sun-2); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.5); color: white; }
.btn-ghost:hover { background: rgba(255,255,255,.1); }

/* blog index */
.blog-hero { background: var(--cloud); padding: 56px 0 44px; border-bottom: 1px solid var(--line); }
.blog-hero h1 { font-size: clamp(34px, 5vw, 52px); margin: 0 0 14px; }
.blog-hero .lede { max-width: 680px; }
.cat-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.cat-nav a { text-decoration: none; font-size: 13px; font-weight: 700; color: var(--navy); background: white; border: 1px solid var(--line); padding: 8px 14px; border-radius: 999px; }
.cat-nav a:hover { border-color: var(--teal); color: var(--teal-2); }
.blog-index { padding: 20px 0 80px; }
.cat-section { padding-top: 44px; scroll-margin-top: 90px; }
.cat-section h2 { font-size: 26px; margin: 0 0 20px; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; background: white; border: 1px solid var(--line); border-radius: 16px; padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.post-card:hover { transform: translateY(-3px); border-color: var(--teal); box-shadow: 0 14px 30px rgba(11,42,74,.10); }
.post-card .chip { align-self: flex-start; }
.post-card h3 { font-size: 17px; margin: 4px 0 0; }
.post-card p { margin: 0; font-size: 14px; color: var(--muted); flex: 1; }
.post-card .meta { font-size: 12px; font-weight: 700; color: var(--teal-2); }

/* post */
.post-hero { background: var(--cloud); padding: 44px 0 36px; border-bottom: 1px solid var(--line); }
.post-hero h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 14px 0 14px; }
.byline { margin: 18px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.post-body { padding: 36px 0 20px; }
.post-image { margin: 0 0 28px; }
.post-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: center 35%; border-radius: 16px; }
.post-image figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

.toc { background: var(--cloud); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 32px; }
.toc strong { display: block; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { margin: 4px 0; font-size: 14.5px; }
.toc a { text-decoration: none; color: var(--navy); font-weight: 600; }
.toc a:hover { color: var(--teal-2); }

.prose { font-size: 17px; }
.prose h2 { font-size: 26px; margin: 44px 0 14px; scroll-margin-top: 96px; }
.prose h3 { font-size: 20px; margin: 30px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 24px; }
.prose li { margin: 6px 0; }
.prose li.check { list-style: none; position: relative; }
.prose li.check::before { content: ''; position: absolute; left: -24px; top: 5px; width: 14px; height: 14px; border: 2px solid var(--teal); border-radius: 4px; }
.prose a { color: var(--teal-2); font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { color: var(--navy); }
.prose blockquote { margin: 24px 0; padding: 16px 20px; background: var(--sun-soft); border-left: 4px solid var(--sun); border-radius: 0 12px 12px 0; }
.prose blockquote p { margin: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 24px; border: 1px solid var(--line); border-radius: 12px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--cloud); font-weight: 800; color: var(--navy); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.faq { margin: 48px 0 12px; scroll-margin-top: 96px; }
.faq h2 { font-size: 26px; margin: 0 0 16px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; background: white; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 18px; font-weight: 800; color: var(--navy); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--teal-2); }
.faq details[open] summary::after { content: '−'; }
.faq .answer { padding: 0 18px 6px; color: var(--ink); }
.faq .answer p { margin: 0 0 12px; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 44px 0 24px; padding: 26px 28px; border-radius: 18px; background: var(--navy); color: white; }
.cta strong { display: block; font-family: 'Sora', sans-serif; font-size: 20px; }
.cta p { margin: 6px 0 0; color: #cfe0f2; font-size: 14.5px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; flex: none; }

.related { background: var(--cloud); padding: 52px 0 64px; margin-top: 36px; border-top: 1px solid var(--line); }
.related h2 { font-size: 26px; margin: 0 0 20px; }

/* footer */
.site-footer { background: var(--navy); color: #b6c7da; padding: 52px 0 26px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 36px; }
.footer-grid div { display: flex; flex-direction: column; gap: 9px; }
.footer-grid strong { color: white; margin-bottom: 4px; }
.footer-grid a { text-decoration: none; overflow-wrap: anywhere; }
.footer-grid a:hover { color: #ffd166; }
.footer-logo { height: 50px; width: auto; filter: brightness(0) invert(1); }
.footer-label { color: white; font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin-top: 6px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 34px; padding-top: 20px; font-size: 12.5px; }

/* responsive */
@media (max-width: 1000px) {
  .wrap { width: min(100% - 40px, 760px); }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .header-nav { display: none; }
  .lang-switch { margin-left: auto; }
}
@media (max-width: 760px) {
  .header-nav { display: none; }
  .header-inner { justify-content: space-between; }
  .brand img { height: 42px; }
  .header-cta { padding: 9px 13px; font-size: 13px; }
}
@media (max-width: 680px) {
  .wrap, .wrap.narrow { width: calc(100% - 32px); }
  .strip { padding: 8px 16px; font-size: 11px; }
  .blog-hero { padding: 36px 0 30px; }
  .lede { font-size: 16px; }
  .post-grid { grid-template-columns: 1fr; }
  .prose { font-size: 16px; }
  .prose h2, .faq h2, .related h2 { font-size: 22px; }
  .cta { flex-direction: column; align-items: stretch; padding: 22px; }
  .cta-actions { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .header-inner { gap: 10px; }
  .brand img { height: 36px; }
  .header-cta { padding: 8px 10px; font-size: 12px; }
  .lang-switch a { padding: 6px 8px; font-size: 12px; }
}
@media (max-width: 380px) {
  .header-cta { display: none; }
}

/* Hindi pages. Devanagari needs its own face and more line height, and letter-spacing
   has to stay at zero because tracking breaks apart conjunct letters. */
html[lang="hi"] body { font-family: 'Noto Sans Devanagari', 'Manrope', system-ui, sans-serif; line-height: 1.75; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { font-family: 'Noto Sans Devanagari', 'Sora', sans-serif; letter-spacing: 0; line-height: 1.4; }
html[lang="hi"] .chip, html[lang="hi"] .toc strong, html[lang="hi"] .footer-label { letter-spacing: 0; text-transform: none; font-size: 12.5px; }
html[lang="hi"] .prose { font-size: 17.5px; }
