/* ===================================================================
   Blog stylesheet — shared across blog/index.html and all blog articles.
   Extracted from duplicated inline <style> blocks that were previously
   copy-pasted into every blog/*.html page.
   =================================================================== */

/* ===== Blog landing page (blog/index.html) ===== */
.blog-hero {
  text-align: center;
  padding: 3rem 1.5rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}
.blog-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-dark, #0f172a);
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.blog-hero p {
  font-size: 1.05rem;
  color: var(--text-muted, #64748b);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.65;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  max-width: 1100px;
  margin: 2.5rem auto 4rem;
  padding: 0 1.5rem;
}
.blog-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid rgba(37,99,235,0.08);
  box-shadow: 0 2px 12px rgba(37,99,235,0.05);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.2);
}
.blog-card-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  background: rgba(37,99,235,0.07);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 0.75rem;
}
.blog-card h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  margin: 0 0 0.6rem;
  line-height: 1.45;
}
.blog-card p {
  font-size: 0.875rem;
  color: var(--text-muted, #64748b);
  line-height: 1.6;
  flex: 1;
  margin: 0 0 1rem;
}
.blog-card-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  display: block;
  margin-bottom: 0.5rem;
}
.blog-card-readmore {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #2563eb;
}

/* ===== Blog article pages ===== */
.blog-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}
.blog-article h1 {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--text-dark, #0f172a);
  margin: 1rem 0 0.75rem;
}
.blog-article h2 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  margin: 2.5rem 0 0.75rem;
}
.blog-article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark, #0f172a);
  margin: 1.75rem 0 0.5rem;
}
.blog-article p {
  line-height: 1.78;
  color: #334155;
  margin-bottom: 1.1rem;
}
.blog-article ul, .blog-article ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.blog-article li {
  line-height: 1.72;
  color: #334155;
  margin-bottom: 0.35rem;
}
.blog-article a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.blog-article a:hover { color: #1d4ed8; }

.article-meta {
  font-size: 0.85rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.article-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2563eb;
  background: rgba(37,99,235,0.08);
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 0.75rem;
}

.tools-cta {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 1.5rem;
  margin: 2.5rem 0;
}
.tools-cta strong { display: block; font-size: 0.95rem; margin-bottom: 0.75rem; color: #0f172a; }
.tools-cta ul { margin: 0; padding-left: 1.25rem; }
.tools-cta li { margin-bottom: 0.3rem; }

.tip-box {
  background: #f0fdf4;
  border-left: 4px solid #22c55e;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.tip-box p { margin: 0; color: #166534; font-size: 0.92rem; }

.warn-box {
  background: #fff7ed;
  border-left: 4px solid #f97316;
  border-radius: 0 8px 8px 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.warn-box p { margin: 0; color: #9a3412; font-size: 0.92rem; }

.steps-list {
  counter-reset: step-counter;
  padding-left: 0;
  list-style: none;
}
.steps-list li {
  counter-increment: step-counter;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.steps-list li::before {
  content: counter(step-counter);
  background: #2563eb;
  color: white;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ===== Blog article breadcrumb / back-link (low-contrast fix) ===== */
/* Matches .tool-breadcrumb color (#4b5563, ~7.5:1 contrast on white) used
   site-wide, replacing the old #94a3b8 (~2.5:1, fails WCAG AA) */
.blog-back-link { margin-top: 2rem; font-size: 0.85rem; color: #4b5563; }
.blog-back-link a { color: #4b5563; }
.blog-back-link a:hover { color: var(--primary); }
