/* ── Single Post Layout ────────────────────────────────────────────── */

.post-hero {
  padding-top: 28px;
  padding-bottom: 0;
}

.post-hero-in {
  max-width: 960px;
  margin: 0 auto;
}

.post-crumbs {
  font-size: 13px;
  color: var(--muted, #667085);
  margin: 0 0 14px;
}

.post-crumbs a {
  color: var(--muted, #667085);
  text-decoration: none;
  font-weight: 600;
}

.post-crumbs a:hover {
  color: var(--accent, #e74632);
  text-decoration: underline;
}

.post-hero h1 {
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  color: var(--ink, #14213d);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.post-excerpt {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink, #14213d);
  margin: 0 0 12px;
  font-weight: 400;
  opacity: 0.85;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted, #667085);
  margin: 0 0 24px;
  padding-bottom: 0;
}

.post-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--muted, #667085);
  opacity: 0.5;
}

.post-meta-author {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: var(--ink, #14213d);
}

.post-meta-author .avatar-sm {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent, #e74632);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ── Featured Image ───────────────────────────────────────────────── */

.post-feature-img {
  margin: 0 0 36px;
}

.post-feature-img img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

/* ── Article Body ─────────────────────────────────────────────────── */

.post-body {
  max-width: 960px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
  color: #2b2b2b;
}

.post-body h2 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink, #14213d);
  margin: 44px 0 14px;
  letter-spacing: -0.01em;
}

.post-body h3 {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--ink, #14213d);
  margin: 34px 0 10px;
}

.post-body h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink, #14213d);
  margin: 24px 0 8px;
}

.post-body p {
  margin: 0 0 18px;
}

.post-body ul,
.post-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.post-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}

.post-body li:last-child {
  margin-bottom: 0;
}

.post-body strong {
  font-weight: 700;
  color: var(--ink, #14213d);
}

.post-body a {
  color: var(--accent, #e74632);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
  transition: color 0.15s ease;
}

.post-body a:hover {
  color: var(--deep, #14213d);
  text-decoration-thickness: 2px;
}

.post-body blockquote {
  margin: 24px 0;
  padding: 16px 24px;
  border-left: 4px solid var(--accent, #e74632);
  background: var(--paper, #f5f7fb);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: var(--muted, #667085);
}

.post-body blockquote p:last-child {
  margin-bottom: 0;
}

/* ── Tables ────────────────────────────────────────────────────────── */

.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14.5px;
}

.post-body thead th {
  background: var(--ink, #14213d);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  text-align: left;
}

.post-body thead th:first-child {
  border-radius: 8px 0 0 0;
}

.post-body thead th:last-child {
  border-radius: 0 8px 0 0;
}

.post-body tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--line, #e3e8f0);
}

.post-body tbody tr:nth-child(even) td {
  background: var(--paper, #f5f7fb);
}

.post-body tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}

.post-body tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

/* ── Post Navigation / CTAs ──────────────────────────────────────── */

.post-nav {
  max-width: 960px;
  margin: 40px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line, #e3e8f0);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.post-nav-links {
  display: flex;
  gap: 10px;
}

/* ── Related Posts ────────────────────────────────────────────────── */

.post-related {
  max-width: 960px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line, #e3e8f0);
}

.post-related h2 {
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 18px;
  color: var(--ink, #14213d);
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.post-related-card {
  padding: 24px 26px;
  border: 1px solid var(--line, #e3e8f0);
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.post-related-card:hover {
  border-color: var(--accent, #e74632);
  box-shadow: 0 2px 12px rgba(20,33,61,.06);
}

.post-related-card .mini {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent, #e74632);
  margin: 0 0 6px;
}

.post-related-card h3 {
  font-size: 17px;
  line-height: 1.35;
  margin: 0 0 6px;
  color: var(--ink, #14213d);
}

.post-related-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted, #667085);
  margin: 0;
}

/* ── Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .post-hero h1 {
    font-size: 26px;
  }

  .post-excerpt {
    font-size: 15px;
  }

  .post-body {
    font-size: 15.5px;
  }

  .post-body h2 {
    font-size: 22px;
  }

  .post-body h3 {
    font-size: 18px;
  }

  .post-body table {
    font-size: 13px;
  }

  .post-body thead th,
  .post-body tbody td {
    padding: 8px 10px;
  }

  .post-related-grid {
    grid-template-columns: 1fr;
  }

  .post-nav {
    flex-direction: column;
    align-items: flex-start;
  }
}
