/* ── Blog Article Typography ────────────────────── */

.article-wrapper {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 100px);
}

.article {
  max-width: 720px;
  margin: 0 auto;
}

.article h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.15;
  margin-bottom: 24px;
  color: var(--text);
}

.article-meta {
  font-size: 15px;
  color: var(--text-dim);
  margin-bottom: 48px;
}

.article-meta-linkedin {
  color: var(--text-dim);
  vertical-align: middle;
  margin-left: 8px;
  transition: color 0.2s;
}

.article-meta-linkedin:hover {
  color: #0a66c2;
}

.article-meta-linkedin svg {
  vertical-align: -2px;
}

.article-lead {
  font-size: 20px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.article h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-top: 56px;
  margin-bottom: 20px;
  color: var(--text);
}

.article h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.3px;
  margin-top: 40px;
  margin-bottom: 16px;
  color: var(--text);
}

.article p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.article p strong {
  color: var(--text);
  font-weight: 600;
}

.article hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

.article em {
  font-style: italic;
}

.article ol {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-left: 24px;
}

.article ol li {
  margin-bottom: 8px;
}

.article ol li strong {
  color: var(--text);
  font-weight: 600;
}

.article ul {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 20px;
  padding-left: 24px;
}

.article ul li {
  margin-bottom: 4px;
}

.article ul li strong {
  color: var(--text);
  font-weight: 600;
}

.article blockquote {
  border-left: 3px solid var(--primary);
  padding: 2px 0 2px 20px;
  margin: 0 0 16px 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  font-style: italic;
}

.article pre {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  overflow-x: auto;
}

.article pre code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article code {
  font-family: 'JetBrains Mono', 'Fira Code', 'SF Mono', monospace;
  font-size: 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--text);
}

.article .closing {
  font-size: 17px;
  color: var(--text-dim);
  font-style: italic;
  margin-top: 48px;
}

.article-cta {
  margin-top: 8px;
}

.article-cta .btn {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 10px;
}

/* ── Plan Flow (app-aligned) ───────────────────── */
/* Scoped under .article to beat site CSS specificity.
   Hardcoded app tokens: --border=#2a2a4a, --surface=#1a1a2e, --radius=8px */

.article .plan-container {
  background: var(--bg);
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  margin-bottom: 24px;
  overflow: hidden;
}

.article .plan-container-header {
  padding: 20px 24px;
  border-bottom: 1px solid #2a2a4a;
}

.article .plan-container-header h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0;
  margin: 0;
}

.article .plan-container-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.article p.plan-container-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.article .plan-container .plan-flow {
  margin-bottom: 0;
}

.article p.plan-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 6px 0 0;
}

.article .plan-flow {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin-bottom: 24px;
}

.article .plan-flow-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  font-size: 0;
  color: transparent;
}

.article .plan-flow-connector::before {
  content: '';
  display: block;
  width: 2px;
  flex: 1;
  min-height: 16px;
  background: #2a2a4a;
  border-radius: 1px;
}

.article .plan-flow-connector::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #2a2a4a;
}

.article .plan-flow-layer {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.article .plan-flow-layer .plan-step-card {
  flex: 1;
  min-width: 0;
}

.article .plan-step-card {
  border: 1px solid #2a2a4a;
  border-radius: 8px;
  padding: 14px 16px;
}

.article .plan-step-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.article .plan-step-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.article .plan-step-agent {
  font-size: 11px;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.article .plan-step-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin: 6px 0 0;
}

.article .plan-step-deps {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 6px;
}

/* Parallel container */
.article .plan-flow-parallel {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 12px;
  border: 1.5px dashed #2a2a4a;
  border-radius: 12px;
  padding: 28px 16px 16px;
  position: relative;
  background: transparent;
}

.article .plan-flow-parallel.vertical {
  flex-direction: column;
  gap: 10px;
}

.article .plan-flow-parallel .plan-step-card {
  flex: 1;
  min-width: 0;
  background: rgba(99, 102, 241, 0.03);
}

.article .plan-flow-parallel-label,
.article .plan-flow-loop-label,
.article .plan-flow-branch-label {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  border: none;
  border-radius: 0;
  transform: none;
}

/* Branch container */
.article .plan-flow-branch {
  border: 1.5px dashed #2a2a4a;
  border-radius: 12px;
  padding: 28px 16px 16px;
  position: relative;
  background: transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article .plan-flow-branch .plan-step-card {
  background: rgba(99, 102, 241, 0.03);
}

.article .plan-flow-branch .plan-step-card.has-branch-value + .plan-step-card.has-branch-value {
  margin-top: 10px;
}

.article .plan-step-card.has-branch-value {
  position: relative;
  padding-top: 22px;
}

.article .plan-step-branch-value {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg);
  padding: 0 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* Loop container */
.article .plan-flow-loop {
  border: 1.5px dashed #2a2a4a;
  border-radius: 12px;
  padding: 28px 16px 16px;
  position: relative;
  background: transparent;
}

.article .plan-flow-loop .plan-step-card {
  background: rgba(99, 102, 241, 0.03);
}

.article .plan-flow-loop .plan-flow-connector {
  padding: 6px 0;
}

.article .plan-flow-loop .plan-flow-connector::before {
  min-height: 12px;
}

/* ── Blog Listing ────────────────────────────────── */

.blog-listing {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  padding-top: calc(var(--nav-height) + 80px);
}

.blog-listing-inner {
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}


.blog-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.blog-card {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 0 24px -4px rgba(99, 102, 241, 0.15);
}

.blog-card-accent {
  width: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}

.blog-card:nth-child(2) .blog-card-accent {
  background: linear-gradient(180deg, var(--secondary), var(--accent));
}

.blog-card:nth-child(3) .blog-card-accent {
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.blog-card-body {
  padding: 28px 28px 24px;
}

.blog-card-meta {
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

.blog-card-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text);
  margin: 0 0 10px;
  line-height: 1.3;
  transition: color 0.2s;
}

.blog-card:hover .blog-card-title {
  color: #fff;
}

.blog-card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 14px;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-card-tag {
  font-size: 11px;
  color: var(--primary);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 2px 10px;
  border-radius: 10px;
}


