/* Blog post design (loaded after each post's inline styles) */
.wl-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--olive); z-index: 10000; transition: width .1s linear; }

/* Hero */
.article-hero-wrap { max-width: 880px; margin: 0 auto; }
.art-cat { background: rgba(61,90,62,0.1); padding: 7px 14px; border-radius: 999px; margin-bottom: 22px; }
.article-hero-wrap h1 { font-size: 54px; line-height: 1.06; letter-spacing: -1.4px; max-width: 880px; }
.art-meta { border-top: 0; padding-top: 0; margin-top: 30px; }
.art-avatar { border-radius: 50%; width: 42px; height: 42px; }

/* Body */
.article-body { max-width: 740px; padding: 64px 24px 80px; counter-reset: sec; }
.article-body p { font-size: 18px; font-weight: 400; line-height: 1.8; color: #3a3a3a; margin-bottom: 24px; }
.article-body > p:first-of-type { font-size: 21px; line-height: 1.7; color: var(--ink-1); font-weight: 400; }
.article-body h2 { counter-increment: sec; font-size: 32px; letter-spacing: -0.8px; line-height: 1.2; margin: 68px 0 20px; padding-top: 28px; border-top: 1px solid var(--border); scroll-margin-top: 110px; }
.article-body h2::before { content: counter(sec, decimal-leading-zero); display: block; font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--olive); margin-bottom: 10px; }
.article-body h3 { font-size: 22px; margin: 40px 0 12px; }
.article-body ul li { font-size: 18px; font-weight: 400; color: #3a3a3a; padding-left: 34px; }
.article-body ul li::before { content: '\2713'; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: rgba(61,90,62,0.12); color: var(--olive); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }
.article-body ol { margin: 0 0 24px; padding-left: 24px; }
.article-body ol li { font-size: 18px; line-height: 1.8; color: #3a3a3a; margin-bottom: 12px; padding-left: 6px; }
.article-body ol li::marker { color: var(--olive); font-weight: 700; }
.article-body blockquote { margin: 36px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--olive); font-size: 22px; line-height: 1.5; font-weight: 500; color: var(--ink-1); }
.article-body table { width: 100%; border-collapse: collapse; margin: 32px 0; font-size: 15px; }
.article-body th, .article-body td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.article-body th { background: var(--off); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-3); }

/* Callout */
.article-callout { background: var(--black); border: 0; border-left: 4px solid var(--olive); border-radius: 10px; padding: 26px 30px; margin: 44px 0; }
.article-callout p, .article-callout p b, .article-callout strong { color: rgba(255,255,255,0.92); }
.article-callout p { font-size: 17px; margin: 0; }
.article-callout a { color: #fff; }

/* Table of contents */
.wl-toc { background: var(--off); border: 1px solid var(--border); border-radius: 12px; padding: 24px 28px; margin: 0 0 44px; }
.wl-toc-t { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--olive); font-weight: 700; margin-bottom: 12px; }
.wl-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.wl-toc li { counter-increment: toc; margin: 0; padding: 0; }
.wl-toc li a { display: flex; gap: 14px; padding: 8px 0; font-size: 16px; line-height: 1.4; color: var(--ink-1); text-decoration: none; border-bottom: 1px solid var(--border); font-weight: 500; }
.wl-toc li:last-child a { border-bottom: 0; }
.wl-toc li a::before { content: counter(toc, decimal-leading-zero); color: var(--olive); font-weight: 700; font-size: 13px; padding-top: 2px; }
.wl-toc li a:hover { color: var(--olive); }

/* Author + CTA */
.wl-author { display: flex; gap: 20px; align-items: center; margin-top: 64px; padding: 28px; border: 1px solid var(--border); border-radius: 12px; background: var(--white); }
.wl-author img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; object-position: center top; filter: grayscale(100%); flex-shrink: 0; }
.wl-author b { display: block; font-size: 16px; color: var(--ink-1); }
.wl-author span { font-size: 14px; color: var(--ink-3); line-height: 1.6; display: block; margin-top: 3px; }
.wl-inline-cta { margin-top: 28px; padding: 32px; border-radius: 12px; background: var(--black); color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.wl-inline-cta h4 { font-family: 'DM Sans', sans-serif; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; color: #fff; margin: 0 0 4px; }
.wl-inline-cta p { font-size: 15px; color: rgba(255,255,255,0.65); margin: 0; }
.wl-inline-cta a.btn-gold { text-decoration: none; color: #fff; }

.related-card { border-radius: 14px; }

@media (max-width: 1024px) { .article-hero-wrap h1 { font-size: 40px; letter-spacing: -1px; } }
@media (max-width: 768px) {
  .article-hero-wrap h1 { font-size: 32px; }
  .article-body { padding: 44px 20px 60px; }
  .article-body p, .article-body ul li, .article-body ol li { font-size: 17px; }
  .article-body > p:first-of-type { font-size: 19px; }
  .article-body h2 { font-size: 26px; margin-top: 52px; }
  .wl-author { flex-direction: column; text-align: center; }
  .wl-inline-cta { padding: 26px 22px; }
}
