/* ============================================================================
 * KanoonPilot — Shared blog-post styles
 * ============================================================================
 * A10 Step 1.2 of the CSP migration roadmap (docs/A10-inline-script-inventory.md §8).
 *
 * Extracted from the 9 inline <style> blocks that were near-duplicates across:
 *   blog-arrest-rights-india.html, blog-consumer-complaint-online.html,
 *   blog-dpdp-rights-india.html,    blog-fir-received.html,
 *   blog-fir-refused-options.html,  blog-free-legal-aid.html,
 *   blog-going-to-court-first-time.html, blog-ipc-to-bns.html,
 *   blog-legal-notice-rights.html
 *
 * What's IN this file: rules used by ≥3 blog-post pages with identical
 * declarations (10 universal + 4 high-frequency + 7 step-box/source-list
 * companion rules + 2 shared callout variants + 1 @media block).
 *
 * What's intentionally OUT (kept inline on each blog page):
 *   - .step-box__num    — every page customises the background colour
 *                         (saffron / navy / success-gradient / etc.)
 *   - .option-card*     — only blog-fir-refused-options.html
 *   - .law-compare*     — only blog-ipc-to-bns.html
 *   - .right-card*      — only blog-legal-notice-rights.html
 *   - .blog-post__share wrapper override — only blog-fir-received.html
 *
 * Last updated: 2026-06-03
 * Loaded by: every blog-*.html via <link rel="stylesheet" href="css/blog-post.css?v=…">
 * Cache-bust string follows the project-wide pattern (currently
 * 20260603-polish-w7; bump in lockstep with css/style.css).
 * ========================================================================= */

/* ---- Blog post container + typography ---- */
.blog-post {
  max-width: 780px;
  margin: 0 auto;
}
.blog-post h2 {
  font-size: var(--text-2xl);
  margin: var(--space-10) 0 var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid var(--border-color);
}
.blog-post h3 {
  font-size: var(--text-xl);
  margin: var(--space-8) 0 var(--space-3);
}
.blog-post p {
  line-height: 1.8;
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
}
.blog-post ul,
.blog-post ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--text-secondary);
  line-height: 1.9;
}
.blog-post strong {
  color: var(--text-primary);
}

/* ---- Hero + meta ---- */
.blog-post__hero {
  padding: var(--space-20) 0 var(--space-10);
  text-align: center;
}
.blog-post__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-4);
}

/* ---- Share buttons ---- */
.blog-post__share a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  text-decoration: none;
  border: 1px solid var(--border-color);
  margin-right: var(--space-1);
  transition: all var(--duration-base) var(--ease-out);
}
.blog-post__share a:hover {
  background: var(--navy-600);
  color: var(--white);
}

/* ---- Callouts (warning / info / success / danger shared variants) ---- */
.callout {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  margin: var(--space-6) 0;
}
.callout p {
  margin-bottom: 0;
}
.callout--warning {
  background: var(--warning-50);
  border-left: 4px solid var(--warning-500);
}
.callout--info {
  background: var(--info-50);
  border-left: 4px solid var(--info-500);
}
.callout--success {
  background: var(--success-50);
  border-left: 4px solid var(--success-500);
}
.callout--danger {
  background: rgba(191, 37, 59, 0.08);
  border-left: 4px solid var(--danger-500);
}

/* ---- Step boxes (numbered walkthrough steps) ----
 * Note: .step-box__num is intentionally left page-local so each post can
 * pick its own accent colour (saffron / navy / success-gradient / etc.).
 */
.step-box {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  margin: var(--space-4) 0;
}
.step-box__content h4 {
  margin-bottom: var(--space-1);
  color: var(--text-primary);
  font-size: var(--text-base);
}
.step-box__content p {
  font-size: var(--text-sm);
  margin-bottom: 0;
}

/* ---- Source list (cited references at the foot of each post) ---- */
.source-list {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.source-list a {
  display: block;
  padding: var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
}
.source-list a strong {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--text-primary);
}
.source-list a span {
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* ---- Resource grid (related-content tile rows) ---- */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-4);
  margin: var(--space-5) 0;
}

/* ---- Mobile breakpoint (shared by all step-box pages) ---- */
@media (max-width: 640px) {
  .step-box {
    flex-direction: column;
  }
  .step-box__num {
    width: 36px;
    height: 36px;
  }
}
