/* ============================================
   BLOG / ARTICLE LAYOUT (add-on)
   ============================================ */

.post-hero {
  padding: 4rem 0 2.5rem;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border);
}

.post-hero-inner { max-width: 980px; }

.post-breadcrumb {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.post-breadcrumb a { color: var(--text-secondary); }
.post-breadcrumb a:hover { color: var(--primary); }

.post-title { margin-bottom: 1rem; }
.post-excerpt { font-size: 1.125rem; margin-bottom: 1.25rem; }

.post-meta {
  display: flex; flex-wrap: wrap; gap: .5rem;
  align-items: center;
  color: var(--text-muted);
  font-size: .875rem;
  margin-bottom: 1.5rem;
}
.post-chip {
  padding: .35rem .75rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border);
  border-radius: 2rem;
  color: var(--primary);
  font-weight: 600;
}
.post-meta-sep { margin: 0 .25rem; }

.post-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.post { padding: 3rem 0 4rem; }
.post-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 2.5rem;
  align-items: start;
}

.post-content {
  max-width: 820px;
}

.post-content h2 { margin-top: 2.5rem; margin-bottom: .75rem; }
.post-content h3 { margin-top: 1.25rem; margin-bottom: .5rem; }
.post-content p { margin: 0.75rem 0; }
.post-content ul { list-style: disc; padding-left: 1.25rem; margin: .75rem 0; }
.post-content li { color: var(--text-secondary); margin: .35rem 0; }
.post-content a { color: var(--primary); }
.post-content a:hover { color: var(--primary-dark); }

.post-lead { font-size: 1.125rem; color: var(--text-secondary); }

.post-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

.post-callout {
  margin: 1.25rem 0 1.5rem;
  padding: 1rem 1.25rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
}

.post-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1rem;
}

.post-box {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
}

.post-table {
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow-x: auto;
}
.post-table table { width: 100%; border-collapse: collapse; min-width: 720px; }
.post-table th, .post-table td {
  text-align: left;
  padding: .85rem;
  border-bottom: 1px solid var(--border);
}
.post-table th { color: var(--text-primary); background: var(--bg-secondary); }
.post-table tr:last-child td { border-bottom: none; }

.post-aside { position: sticky; top: 6rem; }
.post-toc, .post-aside-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1rem;
}
.post-toc-title, .post-aside-title {
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: .75rem;
}
.post-toc ul, .post-links { list-style: none; padding-left: 0; }
.post-toc li, .post-links li { margin: .5rem 0; }
.post-toc a, .post-links a { color: var(--text-secondary); font-weight: 500; }
.post-toc a:hover, .post-links a:hover { color: var(--primary); }

.post-end-cta {
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: 1rem;
  border: 1px solid var(--border);
  background: var(--bg-secondary);
}
.post-end-cta h3 { margin-bottom: .5rem; }
.post-end-cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1rem; }

@media (max-width: 960px) {
  .post-layout { grid-template-columns: 1fr; }
  .post-aside { position: static; }
}

@media (max-width: 768px) {
  .post-hero { padding: 3rem 0 2rem; }
  .post-grid-2 { grid-template-columns: 1fr; }
}
