/* ═══════════════════════════════════════════════════════════════
   HIPPENSTEEL LAW FIRM — Blog styles v2 (light editorial)
   ═══════════════════════════════════════════════════════════════ */

/* ── BLOG HERO EMBLEM (override path for /blog/ subdirectory) ── */
.page-hero::after {
  background-image: url('../emblem.svg');
}

/* ── BLOG LAYOUT ── */
.blog-layout {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 300px; gap: 64px;
  align-items: start;
}

/* ── BLOG META (hero area) ── */
.blog-meta-top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px;
}
.blog-date {
  font-family: var(--sans); font-size: 11px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-dim);
}

/* ── ARTICLE PROSE ── */
.blog-content {
  min-width: 0; /* prevent grid blowout */
}
.blog-content h2 {
  font-family: var(--serif); font-size: clamp(26px, 3vw, 34px);
  font-weight: 500; color: var(--text); line-height: 1.2;
  letter-spacing: -.01em;
  margin-top: 56px; margin-bottom: 18px;
  scroll-margin-top: 100px;
}
.blog-content h2 em { color: var(--label); font-style: italic; font-weight: 400; }
.blog-content h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  color: var(--text); margin-top: 40px; margin-bottom: 12px;
  scroll-margin-top: 100px;
}
.blog-content p {
  font-family: var(--sans); font-size: 15.5px; font-weight: 300;
  color: var(--text-mid); line-height: 1.9;
  margin-bottom: 18px;
}
.blog-content p strong { color: var(--text); font-weight: 500; }
.blog-content a {
  color: var(--label); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.blog-content .btn-primary,
.blog-content a.btn-primary,
.blog-content a.btn-primary:visited {
  color: var(--btn-ink) !important; text-decoration: none !important;
}
.blog-content a.btn-primary:hover {
  color: var(--btn-ink) !important; background: var(--btn-bg-hover);
}
.blog-content a:hover { color: var(--honey); }

/* Lists inside article */
.blog-content ul, .blog-content ol {
  margin-bottom: 18px; padding-left: 24px;
}
.blog-content li {
  font-family: var(--sans); font-size: 15.5px; font-weight: 300;
  color: var(--text-mid); line-height: 1.85;
  margin-bottom: 8px;
}
.blog-content li::marker { color: var(--honey-text); }
.blog-content ol li::marker {
  font-family: var(--serif); font-size: 15px; font-style: italic;
  color: var(--honey-text);
}

/* Blockquote inside article */
.blog-content blockquote {
  font-family: var(--serif); font-size: clamp(20px, 2.5vw, 27px);
  font-weight: 400; font-style: italic; color: var(--text); line-height: 1.45;
  border-left: 2px solid var(--honey); padding-left: 28px;
  margin: 40px 0;
}

/* Callout box (for key takeaways, warnings, etc.) */
.blog-callout {
  background: var(--paper); border: 1px solid var(--green-border);
  border-left: 3px solid var(--honey);
  padding: 26px 30px;
  margin: 30px 0;
}
.blog-callout-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--label); margin-bottom: 10px;
}
.blog-callout p {
  font-size: 14.5px; margin-bottom: 8px;
}
.blog-callout p:last-child { margin-bottom: 0; }

/* TLDR / Quick Answer (GEO optimization) */
.blog-tldr {
  margin-top: 8px;
}

/* Inline CTA within article body */
.blog-inline-cta {
  background: var(--moss);
  padding: 32px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 18px;
  margin: 40px 0;
}
.blog-inline-cta { --btn-bg: var(--honey); --btn-ink: var(--moss); --btn-bg-hover: var(--honey-light); }
.blog-inline-cta-title {
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  color: var(--bone); margin-bottom: 5px;
}
.blog-inline-cta-sub {
  font-family: var(--sans); font-size: 13px; font-weight: 300;
  color: rgba(237,233,221,.65);
}

/* Divider between sections */
.blog-divider {
  width: 64px; height: 1px;
  background: var(--honey); opacity: .45;
  margin: 48px 0; border: none;
}

/* ── AUTHOR BOX ── */
.blog-author-box {
  display: flex; gap: 22px; align-items: flex-start;
  margin-top: 56px; padding: 30px;
  background: var(--paper);
  border: 1px solid var(--border);
}
.blog-author-img {
  width: 68px; height: 68px;
  object-fit: cover; object-position: top;
  border: 1px solid var(--border); flex-shrink: 0;
}
.blog-author-name {
  font-family: var(--serif); font-size: 17px;
  font-weight: 500; color: var(--text); margin-bottom: 2px;
}
.blog-author-title {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .18em; color: var(--label);
  text-transform: uppercase; margin-bottom: 8px;
}
.blog-author-bio {
  font-family: var(--sans); font-size: 13px; font-weight: 300;
  color: var(--text-mid); line-height: 1.75;
  margin-bottom: 0 !important;
}

/* ── SIDEBAR ── */
.blog-sidebar {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 18px;
}
.blog-sidebar-card {
  background: var(--paper); border: 1px solid var(--border);
  padding: 26px;
}
.blog-sidebar-cta {
  background: var(--moss); border-color: var(--moss);
  --text: var(--bone); --text-mid: rgba(237,233,221,.7);
  --label: var(--honey); --border: rgba(237,233,221,.14);
  --btn-bg: var(--honey); --btn-ink: var(--moss); --btn-bg-hover: var(--honey-light);
}
.blog-sidebar-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--label); margin-bottom: 14px;
}

/* Table of contents */
.blog-toc a, .blog-toc-link {
  display: block; font-family: var(--sans); font-size: 13px; font-weight: 300;
  color: var(--text-mid); line-height: 1.5;
  padding: 6px 0; border-left: 1px solid var(--border);
  padding-left: 14px; transition: color .2s, border-color .2s;
  text-decoration: none;
}
.blog-toc a:hover, .blog-toc a.active, .blog-toc-link:hover {
  color: var(--label); border-left-color: var(--honey);
}

/* Related posts in sidebar */
.blog-related-link {
  display: block; padding: 13px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none; transition: color .2s;
}
.blog-related-link:last-child { border-bottom: none; }
.blog-related-link:hover .blog-related-title { color: var(--label); }
.blog-related-chip {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--label); margin-bottom: 4px;
}
.blog-related-title {
  font-family: var(--serif); font-size: 15px; font-weight: 500;
  color: var(--text); line-height: 1.4; transition: color .2s;
}

/* ── BLOG INDEX PAGE ── */
.blog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  border: 1px solid var(--border);
}
.blog-grid > * { border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.blog-card {
  background: var(--paper);
  padding: 32px 30px; text-decoration: none;
  display: block; transition: background .3s;
  border-radius: 0;
}
.blog-card:hover { background: var(--moss); }
.blog-card:hover .blog-card-title { color: var(--bone); }
.blog-card:hover .blog-card-excerpt { color: rgba(237,233,221,.65); }
.blog-card:hover .blog-card-chip,
.blog-card:hover .blog-card-link { color: var(--honey); }
.blog-card:hover .blog-card-date { color: rgba(237,233,221,.45); }
.blog-card-chip {
  font-family: var(--sans); font-size: 9px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--label); margin-bottom: 10px; transition: color .3s;
}
.blog-card-date {
  font-family: var(--sans); font-size: 10px; font-weight: 400;
  letter-spacing: .12em; color: var(--text-dim);
  margin-bottom: 12px; transition: color .3s;
}
.blog-card-title {
  font-family: var(--serif); font-size: 19px; font-weight: 500;
  color: var(--text); line-height: 1.32; margin-bottom: 10px;
  letter-spacing: -.005em; transition: color .3s;
}
.blog-card-excerpt {
  font-family: var(--sans); font-size: 13.5px; font-weight: 300;
  color: var(--text-mid); line-height: 1.75;
  margin-bottom: 18px;
  display: -webkit-box; -webkit-line-clamp: 3;
  -webkit-box-orient: vertical; overflow: hidden;
  transition: color .3s;
}
.blog-card-link {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--label); transition: color .3s;
}

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .blog-layout {
    grid-template-columns: 1fr !important;
    gap: 36px;
  }
  .blog-sidebar {
    position: static;
    order: -1; /* TOC above content on mobile */
  }
  .blog-grid {
    grid-template-columns: 1fr !important;
  }
  .blog-grid > * { border-right: none; } /* avoid doubled edge in single column */
  .blog-author-box {
    flex-direction: column; gap: 14px;
  }
}

/* employment evaluator link in sidebar CTA */
.blog-eval-link {
  display: block; margin-top: 14px;
  font-family: var(--sans); font-size: 12.5px; font-weight: 300;
  color: var(--label); line-height: 1.55;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
.blog-eval-link em { font-family: var(--serif); font-style: italic; }
.blog-eval-link:hover { color: var(--honey-light); }
