/* ============================================================
   Blog Article page — editorial
   ============================================================ */

/* Reading progress */
.progress-track { position: fixed; top: 0; left: 0; right: 0; height: 3px; background: transparent; z-index: 200; }
.progress-bar { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .08s linear; }

/* Article header */
.art-head { max-width: 820px; margin-inline: auto; padding-block: clamp(28px, 4vw, 52px) clamp(20px, 3vw, 34px); text-align: center; }
.art-head .crumbs { justify-content: center; margin-bottom: 22px; }
.art-tags { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 0.86rem; margin-bottom: 20px; flex-wrap: wrap; }
.art-tags .muted { white-space: nowrap; }
.crumbs a, .crumbs span { white-space: nowrap; }
.dotsep { width: 4px; height: 4px; border-radius: 50%; background: var(--line-strong); }
.art-title { letter-spacing: -0.03em; }
.art-dek { margin-top: 20px; margin-inline: auto; max-width: 60ch; }
.art-author { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 30px; }
.aa-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: var(--surface); display: grid; place-items: center; font-weight: 800; flex: none; }
.aa-meta { text-align: left; line-height: 1.25; }
.aa-meta b { font-weight: 700; font-size: 0.96rem; }
.aa-meta .muted { display: block; font-size: 0.84rem; }
.aa-actions { display: flex; gap: 8px; margin-left: 6px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--ink-2); transition: all .15s ease; }
.icon-btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-sm); }
.icon-btn svg { width: 18px; height: 18px; }

/* Featured image */
.art-cover { max-width: 1000px; margin-inline: auto; aspect-ratio: 16 / 8.4; padding: 12px; background: var(--surface-2); border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); }

/* Body + TOC grid */
.art-grid { max-width: 1060px; margin-inline: auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); padding-block: clamp(40px, 5vw, 72px); }

/* TOC */
.toc { position: sticky; top: 96px; align-self: start; }
.toc-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.toc-list { display: flex; flex-direction: column; gap: 2px; border-left: 2px solid var(--line); }
.toc-list a { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); padding: 7px 0 7px 16px; margin-left: -2px; border-left: 2px solid transparent; line-height: 1.35; transition: color .15s ease, border-color .15s ease; }
.toc-list a:hover { color: var(--ink); }
.toc-list a.active { color: var(--ink); border-left-color: var(--accent); }
.toc-cta { margin-top: 28px; padding: 22px; }
.toc-cta h4 { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; margin: 12px 0 6px; }
.toc-cta p { font-size: 0.86rem; line-height: 1.45; margin-bottom: 14px; }

/* Article body typography */
.art-body { font-size: 1.14rem; line-height: 1.75; color: var(--ink-2); max-width: 68ch; }
.art-body > p { margin-bottom: 1.45em; text-wrap: pretty; }
.art-body h2 { font-weight: 800; letter-spacing: -0.022em; font-size: 1.7rem; line-height: 1.2; color: var(--ink); margin: 2em 0 0.7em; scroll-margin-top: 96px; }
.art-body strong { color: var(--ink); font-weight: 700; }
.art-body em { font-style: italic; }

/* Callouts */
.callout { background: var(--surface); border-radius: var(--r-md); padding: 22px 24px; margin: 1.8em 0; box-shadow: inset 0 0 0 1px var(--line); border-left: 4px solid var(--line-strong); }
.callout p { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.callout-label { display: block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.callout-key { background: var(--accent-tint); border-left-color: var(--accent); box-shadow: none; margin-top: 0; margin-bottom: 2.2em; }
.callout-key .callout-label { color: var(--accent-deep); }
.callout-key p { color: var(--ink); font-weight: 600; }

/* Pull quote */
.pullquote { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; color: var(--ink); margin: 1.6em 0; padding-left: 26px; border-left: 4px solid var(--accent); text-wrap: balance; }

/* Share */
.art-share { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 3em; padding-top: 1.8em; border-top: 1px solid var(--line); }
.art-share .muted { font-weight: 600; }
.share-row { display: flex; gap: 8px; }

/* CTA newsletter form */
.cta-news { display: flex; gap: 10px; margin-top: 30px; max-width: 460px; background: rgba(255,255,255,0.08); padding: 7px; border-radius: var(--r-pill); }
.cta-news input { flex: 1; background: none; border: none; color: #fff; padding: 10px 18px; font-family: inherit; font-size: 1rem; outline: none; }
.cta-news input::placeholder { color: rgba(255,255,255,0.5); }

@media (max-width: 880px) {
  .art-grid { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .art-body { font-size: 1.08rem; max-width: none; }
  .cta-news { flex-direction: column; background: none; padding: 0; }
  .cta-news input { background: rgba(255,255,255,0.08); border-radius: var(--r-pill); }
}
