/* =============================================================
   NORMIA · blog.css  (complementa styles.css)
   ============================================================= */

/* ── Blog Nav overrides ─────────────────────────────────────── */
.nav-brand { text-decoration: none; }

/* ── Blog Hero ──────────────────────────────────────────────── */
.blog-hero {
  background: var(--color-ink, #0f0e17);
  color: #fff;
  padding: 7rem 0 4rem;
  margin-top: 72px;
}
.blog-breadcrumb {
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  margin-bottom: 1.2rem;
  display: flex;
  gap: .4rem;
  align-items: center;
}
.blog-breadcrumb a { color: rgba(255,255,255,.5); text-decoration: none; }
.blog-breadcrumb a:hover { color: #fff; }
.blog-breadcrumb span { color: rgba(255,255,255,.25); }
.blog-tag {
  display: inline-block;
  background: rgba(78,205,147,.18);
  color: #4ecd93;
  border: 1px solid rgba(78,205,147,.3);
  border-radius: 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25rem .7rem;
  margin-bottom: 1.2rem;
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.18;
  max-width: 760px;
  margin: 0 0 1.2rem;
  color: #fff;
}
.blog-intro {
  font-size: 1.05rem;
  color: rgba(255,255,255,.7);
  max-width: 660px;
  line-height: 1.65;
  margin: 0 0 1.8rem;
}
.blog-meta {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.blog-meta strong { color: rgba(255,255,255,.7); font-weight: 600; }

/* ── Blog Layout ────────────────────────────────────────────── */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  padding-top: 3.5rem;
  padding-bottom: 5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .blog-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .blog-sidebar { order: -1; }
}

/* ── Article Content ────────────────────────────────────────── */
.blog-content { min-width: 0; }
.blog-content h2 {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--color-ink, #0f0e17);
  margin: 2.8rem 0 1rem;
  line-height: 1.25;
}
.blog-content h2:first-child { margin-top: 0; }
.blog-content h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-ink, #0f0e17);
  margin: 2rem 0 .7rem;
}
.blog-content p {
  font-size: 1rem;
  line-height: 1.75;
  color: #374151;
  margin: 0 0 1.2rem;
}
.blog-content ul, .blog-content ol {
  padding-left: 1.4rem;
  margin: 0 0 1.4rem;
}
.blog-content li {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
  margin-bottom: .45rem;
}
.blog-content strong { color: #0f0e17; font-weight: 700; }
.blog-content a { color: #2e7d4f; text-decoration: underline; text-underline-offset: 3px; }
.blog-content a:hover { color: #1a5c37; }

/* Info box */
.blog-infobox {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid #2e7d4f;
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}
.blog-infobox p { margin: 0; font-size: .95rem; }
.blog-infobox strong { color: #166534; }

/* Warning box */
.blog-warnbox {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}
.blog-warnbox p { margin: 0; font-size: .95rem; }

/* Table */
.blog-table-wrap { overflow-x: auto; margin: 1.8rem 0; }
.blog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.blog-table th {
  background: #0f0e17;
  color: #fff;
  font-weight: 700;
  padding: .7rem 1rem;
  text-align: left;
}
.blog-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  color: #374151;
  vertical-align: top;
}
.blog-table tr:last-child td { border-bottom: none; }
.blog-table tr:nth-child(even) td { background: #f9fafb; }

/* Checklist */
.blog-checklist { list-style: none; padding: 0; margin: 0 0 1.4rem; }
.blog-checklist li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  padding: .5rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.blog-checklist li:last-child { border-bottom: none; }
.blog-checklist li::before {
  content: '✓';
  color: #2e7d4f;
  font-weight: 800;
  font-size: .9rem;
  margin-top: .15rem;
  flex-shrink: 0;
}

/* ── Sidebar ────────────────────────────────────────────────── */
.blog-sidebar { position: sticky; top: 96px; }
.sidebar-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h3 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #9ca3af;
  margin: 0 0 1rem;
}
.sidebar-toc { list-style: none; padding: 0; margin: 0; }
.sidebar-toc li { margin-bottom: .4rem; }
.sidebar-toc a {
  font-size: .88rem;
  color: #374151;
  text-decoration: none;
  display: block;
  padding: .3rem .5rem;
  border-radius: 4px;
  line-height: 1.4;
}
.sidebar-toc a:hover { background: #f3f4f6; color: #0f0e17; }

.sidebar-cta {
  background: linear-gradient(135deg, #0f0e17 0%, #1a2e1f 100%);
  border: none;
  border-radius: 12px;
  padding: 1.5rem;
}
.sidebar-cta h3 { color: rgba(255,255,255,.6); margin-bottom: .8rem; }
.sidebar-cta p {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  line-height: 1.5;
  margin: 0 0 1.2rem;
}
.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  font-size: .88rem;
  padding: .65rem 1rem;
}

/* ── Related Articles ───────────────────────────────────────── */
.blog-related { padding: 4rem 0; background: #f9fafb; }
.blog-related h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f0e17;
  margin: 0 0 2rem;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}
.related-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 1.5rem;
  text-decoration: none;
  display: block;
  transition: box-shadow .2s, transform .2s;
}
.related-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); transform: translateY(-2px); }
.related-card-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #2e7d4f;
  margin-bottom: .6rem;
  display: block;
}
.related-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: #0f0e17;
  line-height: 1.35;
  margin: 0 0 .5rem;
}
.related-card p {
  font-size: .82rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* ── Inline CTA ─────────────────────────────────────────────── */
.blog-cta-inline {
  background: linear-gradient(135deg, #0f0e17 0%, #1a2e1f 60%);
  border-radius: 16px;
  padding: 2.5rem;
  margin: 3rem 0;
  text-align: center;
}
.blog-cta-inline h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 .7rem;
}
.blog-cta-inline p {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}
.blog-cta-inline .btn { font-size: .9rem; }

/* ── Blog Index ─────────────────────────────────────────────── */
.blog-index-hero {
  background: var(--color-ink, #0f0e17);
  color: #fff;
  padding: 8rem 0 5rem;
  margin-top: 72px;
}
.blog-index-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin: 0 0 1rem;
}
.blog-index-hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.65);
  max-width: 540px;
  line-height: 1.65;
  margin: 0;
}
.blog-grid-section { padding: 4rem 0 6rem; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.blog-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s, transform .25s;
}
.blog-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-3px); }
.blog-card-body { padding: 1.8rem; flex: 1; display: flex; flex-direction: column; }
.blog-card-tag {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #2e7d4f;
  margin-bottom: .8rem;
  display: block;
}
.blog-card h2 {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f0e17;
  line-height: 1.35;
  margin: 0 0 .8rem;
}
.blog-card p {
  font-size: .88rem;
  color: #6b7280;
  line-height: 1.6;
  margin: 0 0 1.2rem;
  flex: 1;
}
.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid #f3f4f6;
  font-size: .78rem;
  color: #9ca3af;
}
.blog-card-arrow {
  color: #2e7d4f;
  font-size: .85rem;
  font-weight: 700;
}

/* ── Reading progress bar ───────────────────────────────────── */
.reading-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, #2e7d4f, #4ecd93);
  z-index: 9999;
  transition: width .1s linear;
}
