/* ── ARTICLE PAGE STYLES ── */

.btn-back {
  padding: 7px 14px; border-radius: 8px;
  background: var(--bg); border: 1px solid var(--border);
  color: var(--text-2); font-size: 0.85rem; font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}
.btn-back:hover { border-color: var(--blue); color: var(--blue); }

/* ── ARTICLE LAYOUT ── */
.article-main { padding: 56px 0 0; background: var(--bg); }
.article-container { max-width: 780px; }

/* ── ARTICLE HEADER ── */
.article-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.article-header .article-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--text-2);
  margin-bottom: 20px;
}
.article-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.15; color: var(--text-1);
  margin-bottom: 20px;
}
.article-lead {
  font-size: 1.1rem; color: var(--text-2);
  line-height: 1.75; margin-bottom: 28px;
}
.article-author-bar {
  display: flex; align-items: center; gap: 14px;
}
.author-meta { display: flex; flex-direction: column; gap: 2px; }
.author-name { font-size: 0.9rem; font-weight: 600; color: var(--text-1); }
.author-role { font-size: 0.8rem; color: var(--text-2); }
.author-avatar--lg {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, #2563EB, #6366F1);
  color: #fff; font-size: 0.9rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ── ARTICLE BODY PROSE ── */
.article-body { color: var(--text-1); }
.article-body h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem; font-weight: 700;
  letter-spacing: -0.02em; color: var(--text-1);
  margin: 48px 0 16px;
}
.article-body h2:first-child { margin-top: 0; }
.article-body p {
  font-size: 1rem; line-height: 1.8;
  color: #374151; margin-bottom: 20px;
}
.article-body strong { color: var(--text-1); font-weight: 600; }
.article-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.article-body code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em; background: #F1F5F9;
  padding: 2px 6px; border-radius: 4px; color: #0F172A;
}

/* ── LISTS ── */
.article-list {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 10px;
  margin: 0 0 24px;
}
.article-list li {
  font-size: 1rem; line-height: 1.7; color: #374151;
  padding-left: 24px; position: relative;
}
.article-list li::before {
  content: '·'; position: absolute; left: 8px;
  font-size: 1.4rem; line-height: 1.4; color: var(--blue); font-weight: 700;
}
ol.article-list { counter-reset: ol-counter; }
ol.article-list li { counter-increment: ol-counter; }
ol.article-list li::before {
  content: counter(ol-counter) '.';
  font-size: 0.85rem; font-weight: 700; color: var(--blue);
  line-height: 1.7; top: 0;
}

/* ── CODE BLOCK ── */
.code-block {
  background: #0F172A; border-radius: 14px;
  padding: 28px 24px; margin: 28px 0;
  overflow-x: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.code-block code {
  background: none; padding: 0; border-radius: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.88rem; line-height: 1.75;
  color: #E2E8F0; white-space: pre;
  display: block;
}

/* ── CALLOUTS ── */
.callout {
  border-radius: 12px; padding: 20px 24px;
  margin: 28px 0; border-left: 4px solid;
  font-size: 0.925rem; line-height: 1.7;
}
.callout--blue  { background: #EFF6FF; border-color: #2563EB; color: #1E40AF; }
.callout--green { background: #ECFDF5; border-color: #059669; color: #065F46; }
.callout--violet { background: #F5F3FF; border-color: #7C3AED; color: #5B21B6; }
.callout a { color: inherit; font-weight: 600; }

/* ── INTEGRATION GRID ── */
.integration-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 16px; margin: 24px 0 28px;
}
.integration-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 18px;
  display: flex; flex-direction: column; gap: 4px;
}
.integration-item strong { font-size: 0.85rem; font-weight: 600; color: var(--text-1); }
.integration-item span { font-size: 0.8rem; color: var(--text-2); line-height: 1.5; }

/* ── ARTICLE FOOTER ── */
.article-footer { padding: 48px 0; }
.af-divider { height: 1px; background: var(--border); margin-bottom: 32px; }
.af-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.author-card { display: flex; align-items: center; gap: 14px; }
.af-tags { display: flex; gap: 8px; flex-wrap: wrap; }

/* ── RELATED SECTION ── */
.related-section { background: #F1F5F9; }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .article-title { font-size: 1.7rem; }
}
@media (max-width: 540px) {
  .integration-grid { grid-template-columns: 1fr; }
  .af-row { flex-direction: column; align-items: flex-start; }
  .code-block { padding: 20px 16px; border-radius: 10px; }
}
