/* ── Blog Article Typography ─────────────────────────────────────────────── */

/* Wrapper — forces its own dark background so content is always readable */
.blog-content {
  color: #151616;
  font-size: 1.0625rem;
  line-height: 1.85;
  font-weight: 400;
  border-radius: 0;
}

/* ── Paragraphs ── */
.blog-content p {
  margin-bottom: 1.6rem;
  color: #151616;
}

.blog-content p:last-child {
  margin-bottom: 0;
}

/* ── Headings ── */
.blog-content h1,
.blog-content h2,
.blog-content h3,
.blog-content h4,
.blog-content h5,
.blog-content h6 {
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-top: 2.75rem;
  margin-bottom: 1rem;
  color: #151616;
}

.blog-content h1 { font-size: 2rem; }
.blog-content h2 { font-size: 1.5rem; border-bottom: 1px solid rgba(255,255,255,0.07); padding-bottom: 0.5rem; }
.blog-content h3 { font-size: 1.25rem; }
.blog-content h4 { font-size: 1.125rem; }

.blog-content h2:first-child,
.blog-content h3:first-child {
  margin-top: 0;
}

/* ── Links ── */
.blog-content a {
  color: #f87171;
  text-decoration: underline;
  text-decoration-color: rgba(248, 113, 113, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

.blog-content a:hover {
  color: #fca5a5;
  text-decoration-color: rgba(252, 165, 165, 0.6);
}

/* ── Strong / Bold ── */
.blog-content strong,
.blog-content b {
  font-weight: 600;
  color: #151616;
}

/* ── Italic ── */
.blog-content em,
.blog-content i {
  font-style: italic;
  color: #e5e7eb;
}

/* ── Unordered lists ── */
.blog-content ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.blog-content ul li {
  position: relative;
  padding-left: 1.5rem;
  color: #b0b7c3;
}

.blog-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f87171;
  opacity: 0.8;
}

/* ── Ordered lists ── */
.blog-content ol {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  counter-reset: ol-counter;
}

.blog-content ol li {
  position: relative;
  padding-left: 2rem;
  color: #b0b7c3;
  counter-increment: ol-counter;
}

.blog-content ol li::before {
  content: counter(ol-counter);
  position: absolute;
  left: 0;
  top: 0.05em;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: rgba(248, 113, 113, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.3);
  color: #f87171;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Blockquote ── */
.blog-content blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.5rem;
  border-left: 3px solid #f87171;
  background: rgba(248, 113, 113, 0.05);
  border-radius: 0 8px 8px 0;
  color: #e5e7eb;
  font-style: italic;
}

.blog-content blockquote p {
  margin: 0;
  color: #e5e7eb;
}

/* ── Inline code ── */
.blog-content code {
  font-family: 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.875em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  padding: 0.15em 0.45em;
  color: #fca5a5;
}

/* ── Code block ── */
.blog-content pre {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  margin: 2rem 0;
}

.blog-content pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.9rem;
  color: #e5e7eb;
}

/* ── Images ── */
.blog-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 2rem 0;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.07);
}

/* ── Horizontal rule ── */
.blog-content hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 2.5rem 0;
}

/* ── Tables ── */
.blog-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.9375rem;
}

.blog-content th {
  text-align: left;
  padding: 0.75rem 1rem;
  background: rgba(126, 66, 20, 0.433);
  border-bottom: 1px solid #151616;
  color: #151616;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
}

.blog-content td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #151616;
  color: #151616;
}

.blog-content tr:last-child td {
  border-bottom: none;
}

/* ── First paragraph lead ── */
.blog-content > p:first-of-type {
  font-size: 1.125rem;
  color: #151616;
  line-height: 1.9;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .blog-content {
    font-size: 1rem;
    padding: 2.5rem 1rem 4rem;
  }

  .blog-content h2 { font-size: 1.3rem; }
  .blog-content h3 { font-size: 1.15rem; }
}