/**
 * localdoc.org — Modern Technical Guides & Editorial Style (css/blog.css)
 */

.blog-article {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.blog-article h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.blog-meta-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}

.blog-meta-bar .meta-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.45;
  display: inline-block;
  flex-shrink: 0;
}

.author-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-primary);
}

.author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.exec-summary-box {
  background: var(--primary-subtle);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-xs);
  padding: 16px 20px;
  margin-bottom: 24px;
}

.exec-summary-box h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.exec-summary-box ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.toc-box {
  background: var(--bg-body);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 28px;
}

.toc-title {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toc-list a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.toc-list a:hover {
  color: var(--primary);
}

.blog-article h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.blog-article p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.blog-article ol, .blog-article ul {
  padding-left: 24px;
  margin-bottom: 20px;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.blog-diagram-wrap {
  background: var(--bg-body);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
  margin: 24px 0;
}

.blog-diagram-caption {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 10px;
  font-style: italic;
}

/* Comparison Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 0.88rem;
}

.spec-table th, .spec-table td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--line);
}

.spec-table th {
  background: var(--bg-body);
  color: var(--text-primary);
  font-weight: 700;
}

.spec-table tr:nth-child(even) {
  background: var(--bg-body);
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0;
}

.faq-item {
  background: var(--bg-body);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.faq-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  width: 100%;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  margin-top: 8px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Top Tool CTA Banner */
.cta-banner {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .blog-article {
    padding: 24px 18px;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* Recommended Next Reads Section */
.recommended-reads-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.recommended-reads-title {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 20px;
}
.recommended-reads-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.recommended-read-card {
  background: var(--bg-body);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.recommended-read-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}
.recommended-read-card .read-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.recommended-read-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
  line-height: 1.35;
}
.recommended-read-card p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Tutorial Step Flows & Visual Enhancements */
.tutorial-flow-box {
  margin: 32px 0;
  padding: 24px;
  background: var(--bg-body);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.tutorial-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 10px;
}

.tutorial-flow-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tutorial-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.tutorial-step-card {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.tutorial-step-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.tutorial-step-num {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.tutorial-step-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.tutorial-step-card p {
  font-size: 0.84rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.blog-visual-card {
  margin: 32px 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-body);
}

.blog-visual-card img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  display: block;
}

.blog-visual-caption {
  padding: 12px 18px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-top: 1px solid var(--line);
  background: var(--bg-surface);
  text-align: center;
}


