/* ============================================================
   Renew HR — Blog (single post + listing)
   Loaded on single posts and the "our-blog" listing page (see
   renewhr_enqueue_blog_styles() in functions.php).
   Reuses .intro-rich, .sfv-intro/.sfv-eyebrow/.sfv-title/.sfv-lead,
   .page-closing, .cta-section already defined in solution.css.

   Scope note: the source export's blog also had a decorative inline-SVG
   illustration per card/cover, a live client-side search + "voice"
   filter, and a year/month archive-timeline chart. Those are
   intentionally not reproduced here (bespoke-per-post artwork and a
   large amount of one-off JS) — card covers use a simple category-
   colored gradient instead, and filtering uses real category-archive
   links + standard WP pagination.
   ============================================================ */

/* ---- Reading progress bar ---- */
.read-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gradient-electric); z-index: 300; transition: width 0.12s linear; }

/* ---- Article hero ---- */
.article-hero { padding: 3.25rem 0 0; }
.article-hero .container { max-width: 880px; }
.ah-meta-top { display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; margin: 1.5rem 0 1.3rem; }
.ah-cat { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--gradient-electric); padding: 0.42rem 0.9rem; border-radius: 100px; text-decoration: none; }
.ah-voice { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--text-mute); border: 1px solid var(--border); padding: 0.37rem 0.85rem; border-radius: 100px; }
.ah-voice::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--electric); }
.ah-title { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; font-weight: 400; color: var(--text); margin-bottom: 1.3rem; }
.ah-deck { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 2vw, 1.45rem); line-height: 1.5; color: var(--text-mute); margin-bottom: 2rem; }
.ah-byline { display: flex; align-items: center; gap: 1rem; padding: 1.25rem 0 2.5rem; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.ah-avatar { width: 52px; height: 52px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.ah-avatar svg { width: 100%; height: 100%; }
.ah-byline-text { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.ah-author { font-weight: 700; color: var(--text); font-size: 0.98rem; }
.ah-author span { color: var(--text-dim); font-weight: 500; }
.ah-subline { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-dim); }

/* ---- Series strip ---- */
.series-strip { max-width: 1120px; margin: 2rem auto 0; padding: 0 2rem; }
.series-inner { display: flex; align-items: center; gap: 1.25rem 1.5rem; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.95rem 1.5rem; }
.series-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--cyan); white-space: nowrap; }
.series-steps { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.series-step { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.86rem; color: var(--text-mute); transition: color .2s; text-decoration: none; }
.series-step .ss-num { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; font-size: 0.74rem; font-weight: 700; }
.series-step.cur { color: var(--text); font-weight: 700; }
.series-step.cur .ss-num { background: var(--gradient-electric); border-color: transparent; color: #fff; }
.series-sep { color: var(--text-dim); }

/* ---- Layout / sidebar ---- */
.article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 3.5rem; max-width: 1120px; margin: 3.5rem auto 0; padding: 0 2rem; align-items: start; }
@media (max-width: 900px) { .article-layout { grid-template-columns: 1fr; } .article-aside { display: none; } }
.article-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2rem; }
.toc-title, .share-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.9rem; }
.toc { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.toc a { font-size: 0.88rem; line-height: 1.4; color: var(--text-mute); padding: 0.5rem 0 0.5rem 1rem; margin-left: -1px; border-left: 2px solid transparent; transition: color .2s, border-color .2s; text-decoration: none; }
.toc a.active { color: var(--electric); border-left-color: var(--electric); font-weight: 600; }
.share-rail { display: flex; gap: 0.6rem; }
.share-rail button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text-mute); transition: color .2s, border-color .2s, transform .2s; background: transparent; }
.share-rail button:hover { color: var(--electric); border-color: var(--electric); transform: translateY(-2px); }
.share-toast { font-size: 0.78rem; color: var(--cyan); margin-top: 0.55rem; min-height: 1em; }

/* ---- Article body typography ---- */
.article-body { max-width: 720px; font-size: 1.08rem; line-height: 1.78; color: var(--text-mute); padding-bottom: 2rem; }
.article-body > p { margin-bottom: 1.5rem; }
.article-body h2 { font-family: var(--serif); font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; font-weight: 400; color: var(--text); margin: 3rem 0 1.25rem; scroll-margin-top: 96px; }
.article-body h3 { font-family: var(--serif); font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; font-weight: 400; color: var(--text); margin: 2.25rem 0 1rem; }
.article-body strong { color: var(--text); font-weight: 700; }
.article-body a { color: var(--electric); text-decoration: none; border-bottom: 1px solid rgba(77,142,255,0.4); }
.article-body ul, .article-body ol { margin: 0 0 1.5rem; padding: 0 0 0 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.article-body ul { padding: 0; list-style: none; }
.article-body ul li { position: relative; padding-left: 1.6rem; }
.article-body ul li::before { content: ''; position: absolute; left: 0; top: 0.65em; width: 7px; height: 7px; border-radius: 50%; background: var(--gradient-electric); }

.key-takeaways { background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--electric); border-radius: 14px; padding: 1.6rem 1.75rem; margin: 0 0 2.75rem; max-width: 720px; }
.key-takeaways h3 { display: flex; align-items: center; gap: 0.5rem; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--cyan); margin: 0 0 1rem; }
.key-takeaways ul { margin: 0; }

.pullquote { margin: 2.75rem 0; padding-left: 1.5rem; border-left: 3px solid var(--electric); font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 2.5vw, 1.85rem); line-height: 1.32; color: var(--text); }

.callout { background: linear-gradient(135deg, rgba(77,142,255,0.09), rgba(0,212,255,0.04)); border: 1px solid var(--border); border-radius: 16px; padding: 1.5rem 1.75rem; margin: 2.5rem 0; }
.callout-label { display: flex; align-items: center; gap: 0.5rem; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--electric); margin-bottom: 0.65rem; }
.callout p { margin: 0 !important; color: var(--text); font-size: 1.05rem; line-height: 1.6; }

.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--border); max-width: 720px; }
.article-tags a { font-size: 0.82rem; font-weight: 600; color: var(--text-mute); border: 1px solid var(--border); border-radius: 100px; padding: 0.42rem 0.9rem; text-decoration: none; }
.article-tags a:hover { color: var(--electric); border-color: var(--electric); }

/* ---- Author card ---- */
.author-card { display: flex; gap: 1.5rem; align-items: flex-start; max-width: 1120px; margin: 4rem auto 0; padding: 2rem 2.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
@media (max-width: 600px) { .author-card { flex-direction: column; align-items: center; text-align: center; } }
.author-card .ac-avatar { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--surface-2); }
.author-card .ac-avatar svg { width: 100%; height: 100%; }
.author-card h4 { font-family: var(--serif); font-size: 1.45rem; font-weight: 400; color: var(--text); margin: 0 0 0.15rem; }
.author-card .ac-role { font-size: 0.85rem; color: var(--cyan); font-weight: 600; margin-bottom: 0.85rem; }
.author-card p { font-size: 0.96rem; line-height: 1.6; color: var(--text-mute); margin-bottom: 0.85rem; }
.author-card .ac-link { font-size: 0.88rem; font-weight: 700; color: var(--electric); text-decoration: none; }

/* ---- Post nav + related ---- */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 1120px; margin: 2.5rem auto 0; padding: 0 2rem; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } }
.post-nav a { display: flex; flex-direction: column; gap: 0.45rem; padding: 1.4rem 1.6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; text-decoration: none; }
.post-nav .pn-dir { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim); }
.post-nav .pn-title { font-family: var(--serif); font-size: 1.05rem; color: var(--text); line-height: 1.25; }
.post-nav .pn-next { text-align: right; align-items: flex-end; grid-column: 2; }

.related-wrap { max-width: 1120px; margin: 4rem auto 0; padding: 0 2rem 5rem; }
.related-head { font-family: var(--serif); font-size: clamp(1.6rem,3vw,2rem); font-weight: 400; color: var(--text); margin-bottom: 2rem; text-align: center; }

/* ---- Card grid (listing + related reading) ---- */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 1.75rem; margin-top: 3rem; }
@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; gap: 1.25rem; } }
.blog-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.25s, border-color 0.25s; }
.blog-card:hover { transform: translateY(-4px); border-color: var(--bc-c, #4F7FCF); }
.blog-cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; background: linear-gradient(135deg, var(--bc-c, #4F7FCF), color-mix(in srgb, var(--bc-c, #4F7FCF) 40%, var(--violet))); }
.blog-meta { position: absolute; top: 1rem; left: 1rem; padding: 0.4rem 0.85rem; background: rgba(0,0,0,0.45); border-radius: 100px; color: white; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; z-index: 2; }
.blog-voice { position: absolute; top: 1rem; right: 1rem; padding: 0.35rem 0.72rem; background: rgba(0,0,0,0.45); border-radius: 100px; font-size: 0.64rem; text-transform: uppercase; font-weight: 700; display: inline-flex; align-items: center; gap: 0.4rem; }
.blog-voice::before { content: ''; width: 6px; height: 6px; border-radius: 50%; }
.voice-our { color: #B8D2FF; } .voice-our::before { background: var(--electric); }
.voice-guest { color: #DEC4FB; } .voice-guest::before { background: var(--violet); }
.blog-body { padding: 1.5rem 1.75rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.blog-date { font-family: var(--serif); font-size: 0.85rem; color: var(--text-mute); font-style: italic; margin-bottom: 0.65rem; }
.blog-readtime { color: var(--text-dim); }
.blog-title { font-family: var(--serif); font-size: 1.35rem; color: var(--text); line-height: 1.25; font-weight: 400; margin-bottom: 0.85rem; }
.blog-excerpt { font-size: 0.92rem; color: var(--text-dim); line-height: 1.55; flex: 1; margin-bottom: 1.25rem; }
.blog-read { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--bc-c, #4F7FCF); font-size: 0.85rem; font-weight: 600; }

/* ---- Listing page ---- */
.blog-section { padding: 4rem 3rem 6rem; }
.blog-inner { max-width: 1280px; margin: 0 auto; }
@media (max-width: 768px) { .blog-section { padding: 2rem 1.5rem 4rem; } }
.blog-cats { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 1.75rem 0 2rem; border-bottom: 1px solid var(--border); margin-bottom: 0.5rem; justify-content: center; }
.blog-cats a { font-size: 0.85rem; font-weight: 600; border: 1px solid var(--border); border-radius: 100px; padding: 0.5rem 1.05rem; color: var(--text-mute); text-decoration: none; }
.blog-cats a.is-active { background: var(--gradient-electric); border-color: transparent; color: #fff; }
.blog-cats .bc-count { opacity: 0.65; font-weight: 700; }

.blog-pagination { display: flex; justify-content: center; align-items: center; gap: 0.5rem; margin-top: 3.5rem; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span.current { min-width: 44px; height: 44px; padding: 0 0.95rem; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-mute); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.blog-pagination span.current { background: var(--gradient-electric); border-color: transparent; color: #fff; box-shadow: 0 12px 30px -12px rgba(77,142,255,0.6); }
.blog-pagination span.dots { color: var(--text-dim); }
