/* =========================================================
   ChimHub Marketing — Blog / interior pages
   Loads AFTER style.css and reuses its design tokens.
   ========================================================= */

/* Interior pages have no dark hero, so the header sits over light
   content — keep it solid and switch to the ink logo + dark nav text. */
body.interior { padding-top: 74px; background: var(--white); }

body.interior .site-header {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 24px rgba(30, 27, 75, 0.08);
}
body.interior .site-header .logo-on-dark { display: none; }
body.interior .site-header .logo-on-light { display: block; }
body.interior .site-header .nav-links a:not(.btn) { color: var(--slate-600); }
body.interior .site-header .nav-links a:not(.btn):hover { color: var(--indigo-600); }
body.interior .site-header .nav-toggle { color: var(--ink); }

/* On mobile the slide-in nav panel is dark, so links stay light there
   (handled by the base stylesheet's !important rule). */

/* ---------- Blog listing ---------- */
.blog-list { max-width: 860px; margin: 0 auto; display: grid; gap: 20px; }
.blog-card {
  display: block; background: #fff; border: 1px solid #edeefb; border-radius: 16px;
  padding: 28px 30px; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #dcdef9; }
.blog-card h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.blog-card .excerpt { color: var(--slate-500); margin: 0 0 14px; font-size: 0.98rem; }
.blog-card .more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.88rem; color: var(--indigo-600); }
.blog-card:hover .more i { transform: translateX(4px); }
.blog-card .more i { transition: transform 0.25s var(--ease); }

/* ---------- Single post ---------- */
.post-wrap { max-width: 760px; margin: 0 auto; }
.post-header { margin-bottom: 34px; }
.post-back {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  font-size: 0.86rem; color: var(--indigo-600); margin-bottom: 20px;
}
.post-header .eyebrow { margin-bottom: 16px; }
.post-header h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 16px; }
.post-meta { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; color: var(--slate-400); font-size: 0.9rem; }
.post-meta i { margin-right: 6px; color: var(--indigo-400); }

.post-body { font-size: 1.07rem; line-height: 1.85; color: #3b3a5e; }
.post-body > *:first-child { margin-top: 0; }
.post-body h2 { font-size: 1.55rem; margin: 42px 0 14px; }
.post-body h3 { font-size: 1.2rem; margin: 30px 0 10px; }
.post-body p { margin: 0 0 20px; }
.post-body ul, .post-body ol { margin: 0 0 22px 1.3rem; display: grid; gap: 9px; }
.post-body li { padding-left: 4px; }
.post-body a { color: var(--indigo-600); text-decoration: underline; text-underline-offset: 2px; }
.post-body a:hover { color: var(--indigo-700); }
.post-body strong { color: var(--ink); }
.post-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 10px 0; }
.post-body blockquote {
  border-left: 4px solid var(--indigo-500); background: var(--slate-50);
  padding: 14px 22px; margin: 26px 0; border-radius: 0 12px 12px 0;
  color: var(--slate-600); font-style: italic;
}
.post-body code { background: var(--slate-100); padding: 2px 7px; border-radius: 6px; font-size: 0.9em; }
.post-body hr { border: none; border-top: 1px solid var(--slate-200); margin: 40px 0; }

/* Tables (e.g. the affiliate earnings breakdown) */
.post-body table {
  width: 100%; border-collapse: collapse; margin: 0 0 24px;
  font-size: 0.98rem; border: 1px solid #e9eafb; border-radius: 12px; overflow: hidden;
}
.post-body thead { background: linear-gradient(135deg, #eef0ff, #f5f3ff); }
.post-body th { text-align: left; font-family: 'Sora', sans-serif; color: var(--ink); font-weight: 700; }
.post-body th, .post-body td { padding: 12px 16px; border-bottom: 1px solid #eef0fb; }
.post-body tbody tr:last-child td { border-bottom: none; }
.post-body tbody tr:nth-child(even) { background: var(--slate-50); }
.post-body td:last-child { font-weight: 700; color: var(--indigo-700); }

/* ---------- End-of-post CTA ---------- */
.post-cta {
  margin: 52px 0 10px; text-align: center;
  background: linear-gradient(135deg, #eef0ff, #f5f3ff);
  border: 1px solid #e2e2fb; border-radius: 20px; padding: 40px 32px;
}
.post-cta h3 { font-size: 1.4rem; margin-bottom: 8px; }
.post-cta p { color: var(--slate-500); margin: 0 0 22px; }

.post-back-bottom { margin-top: 34px; }
.post-back-bottom a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--indigo-600); }
