/* ===========================================
   Tree Launcher — Blog Article / Post Page
   =========================================== */

/* Article header */
.article-header { max-width: 720px; margin: 0 auto; padding: 120px 24px 48px; }
.article-breadcrumb { font-size: 13px; color: var(--text-tertiary); margin-bottom: 24px; }
.article-breadcrumb a { color: var(--green-700); text-decoration: none; }
.article-breadcrumb a:hover { text-decoration: underline; }
.article-tag {
  display: inline-block; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--green-700); background: var(--green-50);
  padding: 5px 12px; border-radius: 4px; margin-bottom: 20px;
}
.article-header h1 {
  font-size: 44px; font-weight: 700; letter-spacing: -2px;
  line-height: 1.12; margin-bottom: 20px;
}
.article-header .subtitle {
  font-size: 20px; color: var(--text-secondary);
  line-height: 1.55; margin-bottom: 32px;
}
.article-meta {
  display: flex; align-items: center; gap: 16px;
  padding-top: 24px; border-top: 1px solid var(--neutral-200);
}
.author-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; color: var(--green-900);
}
.author-info { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-size: 14px; font-weight: 600; }
.article-date { font-size: 13px; color: var(--text-tertiary); }

/* Article body */
.article-body { max-width: 720px; margin: 0 auto; padding: 0 24px 64px; }
.article-body p {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 18px; line-height: 1.8; margin-bottom: 28px; color: #2A2A2A;
}
.article-body h2 {
  font-family: 'Inter', sans-serif;
  font-size: 28px; font-weight: 700; letter-spacing: -0.8px;
  margin-top: 56px; margin-bottom: 20px; line-height: 1.25;
}
.article-body h3 {
  font-family: 'Inter', sans-serif;
  font-size: 22px; font-weight: 600; letter-spacing: -0.3px;
  margin-top: 44px; margin-bottom: 16px;
}
.article-body blockquote {
  border-left: 3px solid var(--green-300);
  padding: 4px 0 4px 24px; margin: 32px 0;
  font-style: italic; color: var(--text-secondary);
}
.article-body blockquote p { font-size: 19px; margin-bottom: 0; }
.article-body ul, .article-body ol {
  font-family: 'Newsreader', 'Georgia', serif;
  font-size: 18px; line-height: 1.8; margin-bottom: 28px;
  padding-left: 28px; color: #2A2A2A;
}
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--green-700); text-decoration: underline; text-underline-offset: 3px; }
.article-body a:hover { color: var(--green-900); }
.article-body img { width: 100%; border-radius: 12px; margin: 32px 0; }

/* Callout box */
.article-body .callout {
  background: var(--green-50); border-radius: 12px; padding: 24px 28px;
  margin: 36px 0; border: 1px solid var(--green-100);
}
.article-body .callout p {
  font-family: 'Inter', sans-serif;
  font-size: 15px; line-height: 1.6; margin-bottom: 0;
  color: var(--green-900);
}
.article-body .callout strong { font-weight: 600; }

/* In-article CTA */
.article-cta {
  background: var(--neutral-100); border-radius: 16px; padding: 40px;
  margin: 48px 0; text-align: center; border: 1px solid var(--neutral-200);
}
.article-cta h3 {
  font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px;
}
.article-cta p {
  font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; line-height: 1.5;
}
.article-cta .btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-700); color: #FFFFFF; padding: 14px 28px;
  border-radius: 12px; font-size: 15px; font-weight: 500;
  text-decoration: none; transition: all 0.2s;
}
.article-cta .btn-primary:hover { background: var(--green-900); transform: translateY(-2px); }

/* Table of contents */
.toc {
  background: linear-gradient(135deg, var(--green-50) 0%, var(--neutral-100) 100%);
  border: 1px solid var(--green-100);
  border-radius: 16px;
  padding: 28px 32px 24px;
  margin: 0 0 48px;
  position: relative;
  overflow: hidden;
}
.toc::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--green-500), var(--green-700));
}
.toc h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.5px; color: var(--green-700);
  margin: 0 0 18px;
}
/* Reset the inner .toc div emitted by the markdown TOC extension */
.toc .toc {
  background: none; border: none; border-radius: 0;
  padding: 0; margin: 0; overflow: visible;
}
.toc .toc::before { display: none; }
.toc ol, .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc ol ol, .toc ul ul, .toc ol ul, .toc ul ol {
  margin: 6px 0 8px 8px;
  padding-left: 18px;
  border-left: 2px solid var(--green-100);
}
.toc li {
  font-size: 15px;
  line-height: 1.4;
  padding: 0;
  margin: 0;
}
.toc a {
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 7px 12px;
  margin: 0 -12px;
  border-radius: 8px;
  font-weight: 500;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.toc > .toc > ol > li > a::before,
.toc > .toc > ul > li > a::before,
.toc > ol > li > a::before,
.toc > ul > li > a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
  align-self: center;
}
.toc ol ol a, .toc ul ul a, .toc ol ul a, .toc ul ol a {
  font-size: 13.5px;
  color: var(--text-secondary);
  font-weight: 400;
  padding: 5px 12px;
}
.toc ol ol a::before, .toc ul ul a::before,
.toc ol ul a::before, .toc ul ol a::before {
  content: '›';
  color: var(--green-500);
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
  min-width: 12px;
}
.toc a:hover {
  background: rgba(46, 125, 50, 0.08);
  color: var(--green-900);
  transform: translateX(2px);
}
.toc > .toc > ol > li > a:hover::before,
.toc > .toc > ul > li > a:hover::before,
.toc > ol > li > a:hover::before,
.toc > ul > li > a:hover::before { background: var(--green-900); }
.toc ol ol a:hover::before, .toc ul ul a:hover::before,
.toc ol ul a:hover::before, .toc ul ol a:hover::before { color: var(--green-900); }

/* Share bar */
.share-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 32px 0; border-top: 1px solid var(--neutral-200);
  border-bottom: 1px solid var(--neutral-200); margin: 48px 0;
}
.share-bar span {
  font-size: 13px; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 1px;
}
.share-btn {
  width: 36px; height: 36px; border-radius: 8px;
  border: 1px solid var(--neutral-200);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
  text-decoration: none; font-size: 16px; color: var(--text-secondary);
  background: none;
}
.share-btn:hover {
  border-color: var(--green-300); color: var(--green-700); background: var(--green-50);
}

/* Comparison table (used in launcher guide article) */
.comparison-table {
  width: 100%; border-collapse: collapse; margin: 36px 0;
  font-family: 'Inter', sans-serif; font-size: 14px;
}
.comparison-table th {
  text-align: left; padding: 12px 16px;
  background: var(--neutral-100); font-weight: 600; font-size: 13px;
  border-bottom: 2px solid var(--neutral-200);
}
.comparison-table td {
  padding: 12px 16px; border-bottom: 1px solid var(--neutral-200);
  vertical-align: top; line-height: 1.5; color: var(--text-secondary);
}
.comparison-table td:first-child { font-weight: 500; color: var(--text-primary); }
.comparison-table tr:last-child td { border-bottom: none; }

/* Author box */
.author-box {
  display: flex; gap: 24px; padding: 36px;
  background: var(--neutral-100); border-radius: 16px;
  margin: 48px 0; border: 1px solid var(--neutral-200);
}
.author-box-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--green-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 700; color: var(--green-900); flex-shrink: 0;
}
.author-box h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.author-box p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* Related posts */
.related { max-width: 720px; margin: 0 auto; padding: 0 24px 96px; }
.related h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 24px; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.related-card {
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--neutral-200);
  text-decoration: none; color: inherit;
  transition: transform 0.2s, box-shadow 0.2s;
}
.related-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.05); }
.related-thumb {
  height: 140px; display: flex; align-items: center;
  justify-content: center; font-size: 32px;
}
.related-body { padding: 20px; }
.related-body .post-tag { font-size: 10px; margin-bottom: 8px; display: inline-block; }
.related-body h4 { font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: -0.2px; }

/* Responsive */
@media (max-width: 768px) {
  .article-header h1 { font-size: 32px; }
  .article-header .subtitle { font-size: 17px; }
  .related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; align-items: center; text-align: center; }
  .comparison-table { font-size: 12px; }
  .comparison-table th, .comparison-table td { padding: 8px 10px; }
}
