/* ============================================================
   BLOG ARTICLE PAGES (/blog/*.html)
   ============================================================ */

.article-hero {
  background: linear-gradient(135deg, var(--navy-950), var(--navy-800));
  color: white;
  padding: 48px 0 0;
}
.article-hero-inner { max-width: 820px; }
.article-meta-row {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.04em;
  color: rgba(255,255,255,0.55); margin-top: 18px;
}
.article-meta-row .cat-pill {
  background: rgba(232,114,42,0.18); color: var(--orange-400);
  padding: 4px 12px; border-radius: 999px; font-weight: 600;
}
.article-hero h1 {
  color: white; font-size: clamp(28px, 4vw, 46px); margin-top: 16px; line-height: 1.18;
}
.article-byline {
  display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.article-byline-avatar {
  width: 40px; height: 40px; border-radius: 50%; background: var(--orange-500);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-display);
  font-weight: 600; color: white; font-size: 15px; flex-shrink: 0;
}
.article-byline strong { color: white; font-size: 14px; display: block; }
.article-byline span { color: rgba(255,255,255,0.55); font-size: 12.5px; }

.article-cover {
  margin: -28px auto 0; max-width: 980px; padding: 0 24px;
}
.article-cover img {
  width: 100%; border-radius: var(--radius-md); box-shadow: 0 24px 56px rgba(10,26,51,0.22);
  display: block; aspect-ratio: 16/10; object-fit: cover;
}

.article-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 56px;
  max-width: 1080px; margin: 0 auto; padding: 56px 24px;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; gap: 36px; }
}

.article-body { max-width: 680px; }
.article-body p { color: var(--slate); font-size: 16.5px; line-height: 1.85; margin-bottom: 20px; }
.article-body h2 {
  font-size: 26px; margin: 40px 0 16px; color: var(--navy-950); line-height: 1.3;
}
.article-body h3 {
  font-size: 19px; margin: 30px 0 12px; color: var(--navy-900);
}
.article-body ul, .article-body ol { margin: 0 0 20px; padding-left: 22px; }
.article-body li { color: var(--slate); font-size: 16px; line-height: 1.8; margin-bottom: 8px; }
.article-body strong { color: var(--navy-950); }
.article-body blockquote {
  border-left: 3px solid var(--orange-500); padding: 4px 0 4px 22px; margin: 28px 0;
  font-family: var(--font-display); font-size: 19px; font-style: italic; color: var(--navy-900);
}
.article-table-wrap { overflow-x: auto; margin: 24px 0 28px; }
.article-table {
  width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 480px;
}
.article-table th {
  background: var(--navy-950); color: white; text-align: left; padding: 11px 14px; font-weight: 600;
}
.article-table td { padding: 11px 14px; border-bottom: 1px solid var(--hairline); color: var(--slate); }
.article-table tr:nth-child(even) td { background: var(--paper); }

.article-callout {
  background: var(--paper); border: 1px solid var(--hairline); border-left: 3px solid var(--orange-500);
  border-radius: var(--radius-sm); padding: 20px 24px; margin: 28px 0;
}
.article-callout-label {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--orange-500);
  font-weight: 600; margin-bottom: 8px; text-transform: uppercase;
}
.article-callout p { margin-bottom: 0; font-size: 15px; }

.article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--hairline); }
.article-tag { background: var(--paper); border: 1px solid var(--hairline); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; color: var(--navy-900); font-weight: 600; }

.article-share { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.article-share span { font-size: 13px; color: var(--slate); font-weight: 600; }
.article-share a {
  width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center; color: var(--navy-900);
}
.article-share a:hover { background: var(--navy-950); color: white; border-color: var(--navy-950); }

/* Sidebar */
.article-sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar-card { background: var(--paper); border: 1px solid var(--hairline); border-radius: var(--radius-md); padding: 24px; }
.sidebar-card h4 { font-size: 14px; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy-950); }
.sidebar-toc { display: flex; flex-direction: column; gap: 10px; }
.sidebar-toc a { font-size: 13.5px; color: var(--slate); line-height: 1.5; }
.sidebar-toc a:hover { color: var(--orange-500); }
.sidebar-cta { background: var(--navy-950); color: white; border-radius: var(--radius-md); padding: 26px 22px; text-align: center; }
.sidebar-cta h4 { color: white; font-size: 16px; margin-bottom: 8px; text-transform: none; letter-spacing: 0; }
.sidebar-cta p { color: rgba(255,255,255,0.65); font-size: 13px; margin-bottom: 16px; }

/* Related posts */
.related-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 800px) { .related-posts-grid { grid-template-columns: 1fr; } }

/* Sticky position for sidebar on desktop */
@media (min-width: 901px) {
  .article-sidebar { position: sticky; top: 100px; align-self: start; }
}
