/* Pro India — blog, archive, search and 404 templates.

   The HTML design has no blog templates, so these views are assembled from the
   approved components: `.page-hero`, `.post-grid` / `.post-card` (from the
   Knowledge Hub, loaded alongside this file), `.card`, `.chip`, `.btn`, `.inp`.
   Everything below is written against the existing design tokens so no new
   colours, type sizes, radii or shadows are introduced. */

/* ---------- Accessibility helper ---------- */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Post meta on the dark page hero ---------- */
.page-hero .post-meta.on-dark {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding-top: 0;
  font-size: 13px;
  color: var(--on-dark-m);
}
.page-hero .post-meta.on-dark span { display: inline-flex; align-items: center; gap: 6px; }
.page-hero .post-meta.on-dark .ic { width: 15px; height: 15px; color: var(--mint); }

/* ---------- Article layout ---------- */
.blog-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.blog-layout.no-aside { grid-template-columns: minmax(0, 820px); justify-content: center; }
.post-cover { margin-bottom: clamp(24px, 4vw, 36px); }
.post-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Article typography ---------- */
.prose { color: var(--tx); font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2,
.prose h3,
.prose h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin-top: 1.7em;
}
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
.prose h4 { font-size: 1.15rem; }
.prose a { color: var(--green-d); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--ink); }
.prose strong { color: var(--ink); font-weight: 700; }
.prose ul,
.prose ol { padding-left: 1.35em; }
.prose li + li { margin-top: 0.5em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose img,
.prose iframe,
.prose video { border-radius: var(--r); width: 100%; }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: 13px; color: var(--tx-mute); margin-top: 10px; text-align: center; }
.prose blockquote {
  border-left: 3px solid var(--green);
  background: var(--wash);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 18px 24px;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink);
}
.prose blockquote p + p { margin-top: 0.8em; }
.prose code {
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: var(--r-xs);
  padding: 2px 6px;
  font-size: 0.9em;
}
.prose pre {
  background: var(--ink-2);
  color: var(--on-dark);
  border-radius: var(--r-sm);
  padding: 20px 22px;
  overflow-x: auto;
}
.prose pre code { background: none; border: 0; padding: 0; color: inherit; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th,
.prose td { border: 1px solid var(--line); padding: 10px 14px; text-align: left; }
.prose th { background: var(--wash); color: var(--ink); font-weight: 700; }

.page-links { margin-top: 26px; display: flex; gap: 8px; font-weight: 600; }

/* ---------- Tags, post navigation ---------- */
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 34px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 34px; }
.post-nav .card h3 { font-size: 16px; margin-top: 6px; }

/* ---------- Sidebar ---------- */
.blog-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 96px; }
.blog-aside .widget-title { font-family: var(--font-serif); font-weight: 500; font-size: 19px; color: var(--ink); margin-bottom: 12px; }
.blog-aside .widget ul { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.blog-aside .widget ul a { color: var(--tx-soft); }
.blog-aside .widget ul a:hover { color: var(--green-d); }

/* ---------- Search form ---------- */
.search-form { display: flex; gap: 10px; flex-wrap: wrap; }
.search-form .inp { flex: 1 1 240px; }
.search-form .btn { flex: 0 0 auto; }

/* ---------- Empty state ---------- */
.empty-state { max-width: 620px; margin: 0 auto; }
.empty-state .card-icon { margin: 0 auto 14px; }
.empty-actions { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-top: 20px; }
.empty-actions .search-form { width: 100%; justify-content: center; }

/* ---------- Pagination ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--tx-soft);
  font-size: 14px;
  font-weight: 600;
  transition: transform .2s var(--ease), box-shadow .2s ease, border-color .2s ease, color .2s ease;
}
.pagination .page-numbers:hover { color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-sm); transform: translateY(-2px); }
.pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination .page-numbers.dots { border-color: transparent; background: none; }
.pagination .page-numbers .ic { width: 15px; height: 15px; }
.pagination .prev .ic { transform: rotate(180deg); }

/* ---------- Comments ---------- */
.comments-area { margin-top: 48px; padding-top: 34px; border-top: 1px solid var(--line); }
.comments-title,
.comment-reply-title { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 500; }
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin: 24px 0 40px; }
.comment-list .children { list-style: none; margin-top: 18px; padding-left: clamp(16px, 4vw, 40px); display: flex; flex-direction: column; gap: 18px; }
.comment-list .comment-body {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px 22px;
  box-shadow: var(--sh-sm);
}
.comment-list .comment-author { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); }
.comment-list .comment-author img { border-radius: 50%; }
.comment-list .comment-metadata { font-size: 12px; color: var(--tx-mute); margin: 4px 0 12px; }
.comment-list .reply { margin-top: 10px; font-size: 13px; font-weight: 600; }
.comment-form { margin-top: 8px; }
.comment-form .form-submit { margin-top: 4px; }

@media (max-width: 1000px) {
  .blog-layout { grid-template-columns: minmax(0, 1fr); }
  .blog-aside { position: static; }
}
@media (max-width: 600px) {
  .post-nav { grid-template-columns: 1fr; }
}
