/* ════════════════════════════════════════════════════════
   blog-article.css — ICD Diagnostica blog article styles
   v=202605300100
   ════════════════════════════════════════════════════════ */

/* ── BLOG BODY BACKGROUND ── */
body { background: #f8f8fc !important; }

/* ── OVERRIDES ON EXISTING bl-* CLASSES ── */

/* H1 bigger (28→36px, matching dashboard hero) */
.bl-main h1 {
  font: 800 34px/1.2 'Inter', system-ui, sans-serif;
  letter-spacing: -0.03em;
  color: #0f172a;
  margin-bottom: 14px;
}

/* H2 sections – slightly bigger + scroll offset */
.bl-main h2 {
  font: 700 22px/1.3 'Inter', system-ui, sans-serif;
  color: #0f172a;
  margin: 32px 0 14px;
  scroll-margin-top: 90px;
  letter-spacing: -0.02em;
}

/* Lead – slightly bigger */
.bl-lead {
  font: 400 15.5px/1.72 'Inter', system-ui, sans-serif;
  color: #334155;
  margin-bottom: 22px;
}

/* Body text – more line height */
.bl-main p {
  font-size: 14.5px;
  color: #334155;
  line-height: 1.78;
  margin-bottom: 14px;
}

/* Breadcrumb – with home icon */
.bl-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 400 13px 'Inter', system-ui, sans-serif;
  color: #94a3b8;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.bl-breadcrumb a {
  color: #94a3b8;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color .15s;
}
.bl-breadcrumb a:hover { color: #7c3aed; }
.bl-breadcrumb .bl-bc-sep { color: #cbd5e1; }
.bl-breadcrumb .bl-bc-current { color: #64748b; }

/* Byline */
.bl-byline {
  font: 400 13.5px/1.4 'Inter', system-ui, sans-serif;
  color: #64748b;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
}
.bl-byline strong { color: #0f172a; font-weight: 600; }
.bl-byline .bl-byline-sep { margin: 0 5px; color: #cbd5e1; }

/* ── PDF DOWNLOAD in sidebar ── */
.bl-toc-divider {
  border: none;
  border-top: 1px solid #f1f5f9;
  margin: 14px 0;
}
.bl-toc-pdf {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s;
  cursor: pointer;
}
.bl-toc-pdf:hover { background: #f5f3ff; }
.bl-toc-pdf-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #f5f0ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bl-toc-pdf-body { flex: 1 1 auto; }
.bl-toc-pdf-label {
  font: 600 13px/1.2 'Inter', system-ui, sans-serif;
  color: #0f172a;
  display: block;
  margin-bottom: 2px;
}
.bl-toc-pdf-sub {
  font: 400 11.5px/1 'Inter', system-ui, sans-serif;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 3px;
}

/* ── INFO BOX — full width, light purple, circle "i" ── */
.bl-info-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: #f5f0ff;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0 18px;
}
.bl-info-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: #7c3aed;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font: 700 18px/1 'Inter', system-ui, sans-serif;
  letter-spacing: 0;
  user-select: none;
}
.bl-info-text {
  flex: 1 1 auto;
  font: 400 14px/1.68 'Inter', system-ui, sans-serif;
  color: #334155;
}
.bl-info-text strong { color: #0f172a; }

/* ── QUOTE BOX — right-float, "❝" + attribution ── */
.bl-quote-box {
  float: right;
  width: 44%;
  max-width: 320px;
  background: #f5f0ff;
  border-radius: 14px;
  padding: 20px 22px 18px;
  margin: 4px 0 18px 24px;
  clear: right;
}
.bl-quote-mark {
  display: block;
  font-size: 44px;
  line-height: 0.75;
  color: #7c3aed;
  margin-bottom: 12px;
  font-family: Georgia, 'Times New Roman', serif;
  user-select: none;
}
.bl-quote-text {
  font: 400 13.5px/1.68 'Inter', system-ui, sans-serif;
  color: #374151;
  margin-bottom: 10px;
}
.bl-quote-attr {
  font: 600 12px/1 'Inter', system-ui, sans-serif;
  color: #7c3aed;
}
.bl-clearfix::after { content: ''; display: table; clear: both; }

/* ── FLOAT IMAGE — inline article illustration ── */
.bl-float-image {
  margin: 4px 0 18px 24px;
}
.bl-float-image--right {
  float: right;
  width: min(48%, 360px);
}
.bl-float-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

@media (max-width: 720px) {
  .bl-float-image--right {
    float: none;
    width: 100%;
    max-width: 420px;
    margin: 10px auto 18px;
  }
}

/* ── HIGHLIGHT BOX (warning / practical note – amber) ── */
.bl-highlight-box {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0 16px;
}
.bl-highlight-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  background: #fde68a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  line-height: 1;
}
.bl-highlight-text {
  flex: 1 1 auto;
  font: 400 13.5px/1.65 'Inter', system-ui, sans-serif;
  color: #78350f;
}
.bl-highlight-text strong { color: #451a03; }

/* TOC nav item hover (already in article, repeat for specificity) */
.bl-toc a:hover { background: #f5f3ff; color: #5b21b6; }
.bl-toc a.active { background: #f0ebff; color: #5b21b6; }

/* ── BIBLIOGRAPHY ── */
.bl-bibliography {
  margin-top: 32px;
  padding: 22px 24px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
}
.bl-bibliography h2 {
  font: 700 16px/1.3 'Inter', system-ui, sans-serif;
  color: #0f172a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e2e8f0;
}
.bl-bibliography ol {
  list-style: none;
  counter-reset: bib;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
}
.bl-bibliography li {
  counter-increment: bib;
  position: relative;
  padding-left: 36px;
  font: 400 12.5px/1.65 'Inter', system-ui, sans-serif;
  color: #475569;
}
.bl-bibliography li::before {
  content: counter(bib) ".";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  text-align: right;
  color: #7c3aed;
  font-weight: 700;
}
.bl-bib-doi { color: #7c3aed; font-size: 11.5px; text-decoration: none; }
.bl-bib-doi:hover { text-decoration: underline; }
