/* ── Blog Article Shared Styles ──────────────────────────────────────────── */

/* Dark hero (intentional — white text on dark gradient) */
.article-hero {
  background: linear-gradient(135deg, #07090d 0%, #0f172a 100%);
  padding: 4rem 0 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #666666;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: #00d4ff; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: #94a3b8; }

/* Article tag badge */
.article-tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: rgba(0,212,255,0.12);
  color: #00d4ff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: 99px;
  margin-bottom: 1rem;
}

/* Hero heading — white on dark bg */
.article-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 800;
  color: #f1f5f9;
  line-height: 1.25;
  margin-bottom: 1rem;
  max-width: 700px;
}

/* Article meta (hero) */
.article-meta {
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

/* Content area — white background, dark text */
main#main-content {
  background: #ffffff;
}

/* Two-column layout */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  padding: 3rem 0 4rem;
  align-items: start;
  background: #ffffff;
}
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { display: none; }
}

/* ── Article body text ─────────────────────────────────────────────────── */
.article-body {
  color: #1a1a1a;
}
.article-body p {
  color: #1a1a1a;
  line-height: 1.8;
  margin-bottom: 1.1rem;
  font-size: 17px;
}
.article-body ul,
.article-body ol {
  color: #1a1a1a;
  line-height: 1.8;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  font-size: 17px;
}
.article-body li {
  margin-bottom: 0.45rem;
  color: #1a1a1a;
}
.article-body strong {
  color: #0a0a0a;
  font-weight: 600;
}
/* Article links — standard blue, not neon, on white bg */
.article-body a {
  color: #0066cc;
  text-decoration: underline;
}
.article-body a:hover { color: #0044aa; }

/* ── Headings — dark, readable on white ───────────────────────────────── */
.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 40px 0 12px;
  line-height: 1.3;
  padding-top: 0;
}
.article-body h3 {
  font-size: 19px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 28px 0 8px;
  line-height: 1.35;
}
.article-body h4 {
  font-size: 16px;
  font-weight: 600;
  color: #0a0a0a;
  margin: 20px 0 6px;
}

/* ── Callout / info boxes — dark bg, white text (intentional) ──────────── */
.callout {
  background: #0f1117;
  border: 1px solid rgba(0,212,255,0.25);
  border-left: 4px solid #00d4ff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1.75rem 0;
}
.callout p {
  margin: 0;
  font-size: 15px;
  color: #ffffff;
  line-height: 1.7;
}
.callout strong {
  color: #ffffff;
  font-weight: 700;
}

/* ── Checklists ───────────────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding-left: 0;
}
.checklist li {
  padding-left: 1.75rem;
  position: relative;
  margin-bottom: 0.5rem;
  color: #1a1a1a;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #15803d;
  font-weight: 700;
}

/* ── Requirements table ───────────────────────────────────────────────── */
.req-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  margin: 1.5rem 0;
}
.req-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  background: #f5f5f5;
  color: #0a0a0a;
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid #dde1e7;
}
.req-table td {
  padding: 0.65rem 0.75rem;
  border: 1px solid #e4e7ec;
  color: #1a1a1a;
  vertical-align: top;
  line-height: 1.6;
}
.req-table tr:nth-child(even) td { background: #fafafa; }
.req-table .yes { color: #15803d; font-weight: 700; }
.req-table .cond { color: #b45309; font-weight: 700; }

/* ── Sidebar ──────────────────────────────────────────────────────────── */
.article-sidebar {
  position: sticky;
  top: 2rem;
}

/* Table of contents card */
.toc-card {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 1.25rem;
}
.toc-card h4 {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #444444;
  margin-bottom: 0.75rem;
}
.toc-card ol {
  padding-left: 1.25rem;
  margin: 0;
}
.toc-card li {
  margin-bottom: 0.4rem;
  color: #333333;
}
.toc-card a {
  color: #333333;
  font-size: 0.85rem;
  text-decoration: none;
}
.toc-card a:hover { color: #0066cc; text-decoration: underline; }

/* Sidebar CTA card — dark bg intentional */
.cta-card {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
}
.cta-card h4 { color: #f1f5f9; font-size: 1rem; margin-bottom: 0.5rem; }
.cta-card p { color: #94a3b8; font-size: 0.82rem; margin-bottom: 1rem; }

/* ── Article-level CTA block — dark bg intentional ───────────────────── */
.article-cta {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid rgba(0,212,255,0.2);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
  margin: 2.5rem 0;
}
.article-cta h2 {
  color: #f1f5f9;
  font-size: 1.4rem;
  margin: 0 0 0.5rem;
  font-weight: 700;
}
.article-cta p {
  color: #94a3b8;
  max-width: 480px;
  margin: 0 auto 1.25rem;
  font-size: 0.9rem;
}

/* ── Related articles section ─────────────────────────────────────────── */
.related-articles {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}
.related-articles h3 {
  color: #0a0a0a;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.related-card {
  background: #f8f8f8;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 1.1rem;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s;
}
.related-card:hover { border-color: #00d4ff; }
.related-card span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0066cc;
  margin-bottom: 0.4rem;
}
.related-card strong {
  display: block;
  color: #1a1a1a;
  font-size: 0.85rem;
  line-height: 1.4;
}
