/* ============================================================
   BLOG POST READER — Foundation Wealth
   Styles for post.html (article layout, typography, CTA)
   ============================================================ */

/* ── Page Layout ── */
.post-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 156px 5% 80px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .82rem;
  color: var(--text);
  margin-bottom: 32px;
}

.back-link:hover { color: var(--navy); }

/* ── Post Header ── */
.post-category {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--gold-text);
}

.post-title {
  font-family: var(--font-heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--navy);
  margin-top: 10px;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.post-subtitle {
  font-size: 1.05rem;
  color: var(--text);
  margin-top: 12px;
  line-height: 1.6;
}

.post-meta {
  display: flex;
  gap: 20px;
  font-size: .8rem;
  color: var(--text);
  margin-top: 16px;
  flex-wrap: wrap;
}

.divider { margin: 24px 0 36px; }

/* ── Article Body ── */
.post-body {
  font-size: .97rem;
  line-height: 1.8;
  color: var(--dark);
  font-variant-numeric: tabular-nums;
}

.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
  font-family: var(--font-heading);
  color: var(--navy);
  margin: 2em 0 .6em;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-body h1 { font-size: 1.5rem; }
.post-body h2 { font-size: 1.25rem; }
.post-body h3 { font-size: 1.1rem; }

.post-body p              { margin: .9em 0; }
.post-body ul,
.post-body ol             { padding-left: 1.5em; margin: .9em 0; }
.post-body li             { margin: .4em 0; }
.post-body strong         { color: var(--dark); font-weight: 700; }

.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 12px 20px;
  background: var(--slate);
  border-radius: 0 8px 8px 0;
  margin: 1.5em 0;
  color: var(--text);
  font-style: italic;
}

.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ── Tables ── */
.post-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .9rem;
}

.post-body th {
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
}

.post-body td                        { padding: 9px 14px; border-bottom: 1px solid var(--border); }
.post-body tr:nth-child(even) td     { background: var(--slate); }

/* ── Code ── */
.post-body code     { background: var(--slate); padding: 2px 6px; border-radius: 4px; font-size: .88em; }
.post-body pre      { background: var(--slate); padding: 16px; border-radius: 8px; overflow-x: auto; margin: 1.2em 0; }
.post-body pre code { background: none; padding: 0; }

/* ── CTA Card ── */
.cta-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin-top: 56px;
}

.cta-card h3 { color: var(--gold); font-size: 1.1rem; margin-bottom: 8px; }
.cta-card p  { color: rgba(255,255,255,.75); font-size: .88rem; margin-bottom: 20px; }

.cta-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .9rem;
}

.cta-btn:hover { background: #fff; }

/* ── Error State ── */
.error-state { text-align: center; padding: 60px 20px; color: var(--text); }
.error-state a { color: var(--navy); font-weight: 600; }

/* ── Mobile ── */
@media (max-width: 767px) {
  .post-title { font-size: 1.4rem; }
  .post-body table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .cta-card { padding: 24px; }
}
