/* ══════════════════════════════════════════════════════════
   BLOG — Article Detail Page
   Red Lion Advisory
   ══════════════════════════════════════════════════════════ */

/* ─── READING PROGRESS BAR ─── */
#read-progress {
  position: fixed; top: 0; left: 0; z-index: 9998;
  height: 2px; width: 0%;
  background: var(--red);
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ─── POST META STRIP ─── */
#post-meta {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.post-meta-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.post-meta-item {
  padding: 26px 32px;
  border-right: 1px solid var(--border);
}
.post-meta-item:first-child { padding-left: 0; }
.post-meta-item:last-child { border-right: none; }
.post-meta-label {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.post-meta-value {
  font-size: 0.92rem; color: var(--text); line-height: 1.4;
}

/* ─── BODY LAYOUT ─── */
#post-body {
  padding: 100px 0 120px;
  background: var(--bg);
}
.post-layout {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 72px; align-items: start;
}

/* ─── SIDEBAR / TOC ─── */
.post-aside { position: sticky; top: 110px; }
.post-toc-label {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
  padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.post-toc { display: flex; flex-direction: column; gap: 2px; }
.post-toc a {
  font-size: 0.82rem; line-height: 1.45; color: var(--muted);
  padding: 9px 0 9px 16px;
  border-left: 1px solid var(--border);
  transition: color 0.25s ease, border-color 0.25s ease;
}
.post-toc a:hover { color: var(--text); border-color: var(--muted); }
.post-toc a.active { color: var(--text); border-color: var(--red); }

.post-share {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--border);
}
.post-share-label {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 14px;
}
.post-share-links { display: flex; gap: 10px; }
.post-share-links a {
  width: 34px; height: 34px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.post-share-links a:hover { border-color: var(--red); color: var(--red); background: var(--red-glow); }

/* ─── ARTICLE TYPOGRAPHY ─── */
.post-article { max-width: 760px; }
.post-lede {
  font-size: 1.18rem; line-height: 1.75; color: var(--text);
  padding-bottom: 36px; margin-bottom: 44px;
  border-bottom: 1px solid var(--border);
  font-weight: 300;
}
.post-article h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 600; line-height: 1.18; letter-spacing: -0.02em;
  color: var(--text);
  margin: 64px 0 22px;
  scroll-margin-top: 110px;
}
.post-article h2:first-child { margin-top: 0; }
.post-article h2 em { color: var(--red); font-style: italic; }
.post-article h3 {
  font-family: var(--serif);
  font-size: 1.16rem; font-weight: 600; line-height: 1.3;
  color: var(--text);
  margin: 40px 0 14px;
}
.post-article p {
  font-size: 1rem; line-height: 1.85; color: var(--muted);
  margin-bottom: 22px;
}
.post-article p strong { color: var(--text); font-weight: 600; }
.post-article a:not(.bl-link):not(.post-cta-link) {
  color: var(--text);
  border-bottom: 1px solid var(--red);
  transition: color 0.2s ease;
}
.post-article a:not(.bl-link):not(.post-cta-link):hover { color: var(--red); }

.post-list { margin: 0 0 26px; display: flex; flex-direction: column; gap: 14px; }
.post-list li {
  position: relative; padding-left: 30px;
  font-size: 0.97rem; line-height: 1.8; color: var(--muted);
}
.post-list li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 18px; height: 1px; background: var(--red);
}
.post-list li strong { color: var(--text); font-weight: 600; }

.post-numbered { counter-reset: pn; margin: 0 0 26px; display: flex; flex-direction: column; gap: 18px; }
.post-numbered li {
  counter-increment: pn;
  position: relative; padding-left: 46px;
  font-size: 0.97rem; line-height: 1.8; color: var(--muted);
}
.post-numbered li::before {
  content: counter(pn, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--serif); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; color: var(--red);
  border: 1px solid var(--border);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
}
.post-numbered li strong { color: var(--text); font-weight: 600; }

/* ─── PULL QUOTE ─── */
.post-quote {
  margin: 48px 0;
  padding: 36px 40px;
  border-left: 2px solid var(--red);
  background: var(--surface);
  position: relative;
}
.post-quote p {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.45; font-weight: 500; font-style: italic;
  color: var(--text); margin-bottom: 0;
}
.post-quote cite {
  display: block; margin-top: 18px;
  font-family: var(--body); font-style: normal;
  font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted);
}

/* ─── CALLOUT ─── */
.post-callout {
  margin: 44px 0;
  padding: 30px 34px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.post-callout-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
}
.post-callout-label::before {
  content: ''; display: block; width: 20px; height: 1px; background: var(--gold);
}
.post-callout p { font-size: 0.94rem; margin-bottom: 0; }

/* ─── STAT ROW ─── */
.post-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
  border: 1px solid var(--border);
  margin: 48px 0;
}
.post-stat { background: var(--bg); padding: 28px 26px; }
.post-stat-num {
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
  line-height: 1; color: var(--red); margin-bottom: 10px;
}
.post-stat-label {
  font-size: 0.78rem; line-height: 1.5; color: var(--muted);
}

/* ─── IN-ARTICLE CTA ─── */
.post-inline-cta {
  margin: 56px 0 0;
  padding: 38px 40px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, var(--surface) 0%, var(--bg) 100%);
}
.post-inline-cta h4 {
  font-family: var(--serif); font-size: 1.3rem; font-weight: 600;
  line-height: 1.25; margin-bottom: 12px; color: var(--text);
}
.post-inline-cta p {
  font-size: 0.92rem; line-height: 1.75; color: var(--muted);
  margin-bottom: 24px;
}
.post-cta-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 30px; background: var(--red); color: #fff;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.25s ease;
}
.post-cta-link:hover { background: var(--red-dark); }

/* ─── TAGS ─── */
.post-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid var(--border);
}
.post-tag {
  font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 8px 14px;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.post-tag:hover { border-color: var(--red); color: var(--text); }

/* ─── AUTHOR ─── */
#post-author {
  padding: 0 0 120px;
  background: var(--bg);
}
.author-box {
  display: grid; grid-template-columns: 120px 1fr;
  gap: 32px; align-items: start;
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 36px 40px;
  max-width: 1072px; margin-left: auto;
}
.author-img {
  width: 120px; height: 120px; overflow: hidden;
  border: 1px solid var(--border);
  position: relative;
}
.author-img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(100%) contrast(1.05);
}
.author-role {
  font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--red); margin-bottom: 8px;
}
.author-name {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--text); margin-bottom: 14px;
}
.author-bio {
  font-size: 0.92rem; line-height: 1.75; color: var(--muted);
  margin-bottom: 18px;
}

/* ─── CTA (shared pattern) ─── */
#cta {
  padding: 160px 0;
  background: var(--bg);
  position: relative; overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.cta-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; position: relative;
}
.cta-left h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 500; line-height: 1.08; letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.cta-left h2 em { color: var(--red); font-style: italic; }
.cta-left p { font-size: 1rem; line-height: 1.8; color: var(--muted); }
.cta-right {
  padding-left: 60px; border-left: 1px solid var(--border);
  display: flex; flex-direction: column; justify-content: center; gap: 24px;
}
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding-bottom: 24px; border-bottom: 1px solid var(--border);
}
.contact-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.contact-item-icon {
  width: 40px; height: 40px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--red); flex-shrink: 0;
}
.contact-item-text .label {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 4px;
}
.contact-item-text .value { font-size: 1rem; color: var(--text); }
.cta-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  #post-body { padding: 72px 0 88px; }
  #post-author { padding: 0 0 88px; }
  #cta { padding: 120px 0; }
  .post-layout { grid-template-columns: 1fr; gap: 48px; }
  .post-aside { position: static; }
  .post-toc { flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .post-toc a {
    border-left: none; border: 1px solid var(--border);
    padding: 9px 14px; font-size: 0.74rem;
  }
  .post-toc a.active { border-color: var(--red); }
  .post-article { max-width: 100%; }
  .author-box { max-width: 100%; }
  .post-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .post-meta-item:nth-child(2) { border-right: none; }
  .post-meta-item:nth-child(3) { padding-left: 0; border-top: 1px solid var(--border); }
  .post-meta-item:nth-child(4) { border-top: 1px solid var(--border); }
  .cta-inner { grid-template-columns: 1fr; gap: 48px; }
  .cta-right { padding-left: 0; border-left: none; border-top: 1px solid var(--border); padding-top: 48px; }
}
@media (max-width: 768px) {
  #post-body { padding: 56px 0 64px; }
  #post-author { padding: 0 0 64px; }
  #cta { padding: 80px 0; }
  .post-meta-grid { grid-template-columns: 1fr; }
  .post-meta-item {
    border-right: none; border-top: 1px solid var(--border);
    padding: 20px 0;
  }
  .post-meta-item:first-child { border-top: none; }
  .post-lede { font-size: 1.05rem; }
  .post-quote { padding: 26px 24px; margin: 36px 0; }
  .post-callout { padding: 24px 22px; }
  .post-inline-cta { padding: 30px 24px; }
  .post-stats { grid-template-columns: 1fr; }
  .author-box { grid-template-columns: 1fr; gap: 22px; padding: 28px 24px; }
}
@media (max-width: 480px) {
  #post-body { padding: 44px 0 52px; }
  #cta { padding: 60px 0; }
  .post-article h2 { margin: 44px 0 18px; }
  .post-quote p { font-size: 1.05rem; }
  .post-numbered li { padding-left: 40px; }
}

