/* ============================================================
   Aged Life Leads — Blog article layout
   Shared by every /blog post. Depends on style.css tokens.
   ============================================================ */

/* Hero: text block aligns with the reading column */
.post-hero .container { max-width: 768px; }
.post-hero h1 { max-width: 26ch; }
.post-meta { margin-top: 16px; font-size: 0.92rem; color: var(--cloud-soft); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.post-meta-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
  color: #fff; background: rgba(217, 36, 53, 0.28); border: 1px solid var(--red-400);
  padding: 4px 11px; border-radius: 999px;
}

/* Shell: single column, becomes prose + TOC rail on desktop */
.post-shell {
  max-width: 768px; margin: 0 auto; padding: 60px 24px 96px;
  display: grid; grid-template-columns: minmax(0, 1fr);
  align-items: start;
}
.post-body { min-width: 0; }
.post-body h2 { scroll-margin-top: 96px; }

/* Sticky table of contents (desktop only) */
.post-toc { display: none; }
.post-toc-inner { position: sticky; top: 96px; border-left: 2px solid var(--line); padding-left: 22px; }
.post-toc-label {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-mute); margin-bottom: 14px;
}
.post-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.post-toc a { text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-mute); }
.post-toc a:hover { color: var(--red-600); }
.post-toc a .toc-n { color: var(--red-500); font-weight: 700; margin-right: 7px; }

/* Article text */
.post-back {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.92rem; font-weight: 600; color: var(--ink-mute);
  text-decoration: none; margin-bottom: 40px;
}
.post-back:hover { color: var(--red-600); }
.post-body p, .post-body li { color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.post-body p { margin-bottom: 18px; }
.post-body ul { margin: 0 0 20px 22px; display: flex; flex-direction: column; gap: 9px; }
.post-body ul li::marker { color: var(--red-500); }
.post-body strong { color: var(--ink); }

/* Editorial lede: larger, darker opening paragraph */
.post-body .post-lede { font-size: 1.16rem; line-height: 1.65; color: var(--ink); margin-bottom: 20px; }

/* Numbered section headings (listicle posts) */
.post-step {
  display: flex; align-items: baseline; gap: 15px;
  font-size: 1.4rem; margin: 52px 0 16px;
  padding-top: 26px; border-top: 1px solid var(--line);
}
.step-n {
  font-family: var(--font-display); font-weight: 800;
  font-size: 2.1rem; line-height: 1; color: var(--red-500);
  letter-spacing: -0.02em; flex-shrink: 0;
}

/* Plain section headings */
.post-h2, .post-outro { font-size: 1.35rem; margin: 52px 0 16px; padding-top: 26px; border-top: 1px solid var(--line); }

/* Callout card */
.post-callout {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 26px 28px; margin: 26px 0 22px;
}
.post-callout > p {
  margin-bottom: 18px; font-weight: 700; color: var(--ink);
  font-size: 0.82rem; letter-spacing: 0.09em; text-transform: uppercase;
}

/* Cadence timeline (vertical by default, horizontal on wide screens) */
.cadence {
  list-style: none; margin: 0; padding: 2px 0 2px 26px;
  display: flex; flex-direction: column; gap: 16px;
  border-left: 2px solid var(--line);
}
.cadence li { position: relative; display: flex; flex-direction: column; gap: 1px; }
.cadence li::before {
  content: ""; position: absolute; left: -33px; top: 5px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--navy-600);
}
.cadence li:last-child::before { background: var(--red-500); border-color: var(--red-500); }
.cadence-day {
  font-size: 0.73rem; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--ink-mute);
}
.cadence-act { font-weight: 600; font-size: 1rem; color: var(--ink); }

/* Pull quote */
.post-quote {
  position: relative; margin: 26px 0 18px; padding: 4px 0 4px 58px;
  font-size: 1.12rem; line-height: 1.6; font-weight: 500;
  font-style: italic; color: var(--ink);
}
.post-quote::before {
  content: "\201C"; position: absolute; left: 0; top: -6px;
  font-family: var(--font-display); font-weight: 800;
  font-size: 4.2rem; line-height: 1; color: var(--red-500); font-style: normal;
}

/* Comparison table */
.post-table-wrap {
  overflow-x: auto; margin: 26px 0 22px;
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); background: var(--surface);
}
.post-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; min-width: 520px; }
.post-table thead th {
  background: var(--navy-900); color: #fff; font-weight: 600;
  text-align: left; padding: 13px 18px; font-size: 0.92rem;
}
.post-table thead th:last-child { color: var(--red-400); }
.post-table tbody th, .post-table tbody td { padding: 13px 18px; text-align: left; border-top: 1px solid var(--line-soft); }
.post-table tbody th { font-weight: 600; color: var(--ink); white-space: nowrap; font-size: 0.95rem; }
.post-table tbody td { color: var(--ink-soft); }

/* Closing CTA card */
.post-cta {
  margin-top: 56px; padding: 40px 32px; text-align: center;
  background: radial-gradient(120% 150% at 75% -20%, var(--navy-700) 0%, var(--navy-900) 55%, var(--navy-950) 100%);
  border-radius: var(--radius-lg); color: #fff;
}
.post-cta h3 { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 10px; }
.post-cta > p { color: var(--cloud-soft); margin: 0 auto 22px; max-width: 44ch; }

@media (max-width: 560px) {
  .post-step { flex-direction: column; gap: 6px; }
}

/* Wide screens: cadence lies horizontal */
@media (min-width: 860px) {
  .post-callout { padding: 30px 34px; }
  .cadence {
    flex-direction: row; gap: 18px;
    border-left: 0; border-top: 2px solid var(--line);
    padding: 24px 0 0 6px;
  }
  .cadence li { flex: 1; gap: 3px; }
  .cadence li::before { left: 0; top: -31px; }
}

/* Desktop: article widens to the site container, sticky TOC fills the right rail */
@media (min-width: 1100px) {
  .post-hero .container { max-width: 1128px; }
  .post-shell {
    max-width: 1128px;
    grid-template-columns: minmax(0, 720px) 244px;
    justify-content: space-between; column-gap: 72px;
  }
  .post-toc { display: block; }
}
