/* Shared styles for Firaasa blog posts (/blog/<slug>/). Base rules copied from the first post; new posts link this file instead of inline CSS. */
:root {
    --lime: #C8FE27; --black: #000000; --grey-dark: #111111; --grey-mid: #1a1a1a;
    --grey-surface: #222222; --grey-border: #333333; --grey-muted: #666666;
    --white: #ffffff; --white-dim: rgba(255,255,255,0.7); --white-faint: rgba(255,255,255,0.1);
    --lime-dim: rgba(200,254,39,0.12); --lime-border: rgba(200,254,39,0.3);
    --article-max: 860px;
  }
  * { margin: 0; padding: 0; box-sizing: border-box; }
  html { scroll-behavior: smooth; }
  body { font-family: 'Poppins', sans-serif; background: var(--black); color: var(--white); overflow-x: hidden; line-height: 1.7; }

  /* ── ARTICLE HERO ── */
  .article-hero { padding: 140px 5% 80px; background: var(--grey-dark); border-bottom: 1px solid var(--grey-border); position: relative; overflow: hidden; }
  .article-hero::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(200,254,39,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(200,254,39,0.03) 1px, transparent 1px); background-size: 60px 60px; pointer-events: none; }
  .article-hero::after { content: ''; position: absolute; top: 30%; left: 50%; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(200,254,39,0.06) 0%, transparent 70%); pointer-events: none; }
  .hero-inner { max-width: var(--article-max); margin: 0 auto; position: relative; z-index: 1; }
  .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--grey-muted); text-decoration: none; font-size: 13px; font-weight: 500; margin-bottom: 32px; transition: color 0.2s; }
  .back-link:hover { color: var(--lime); }
  .back-link svg { transition: transform 0.2s; }
  .back-link:hover svg { transform: translateX(-3px); }
  .article-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
  .tag { background: var(--lime-dim); border: 1px solid var(--lime-border); color: var(--lime); font-size: 11px; font-weight: 700; padding: 4px 12px; border-radius: 100px; text-transform: uppercase; letter-spacing: 0.8px; }
  .article-title { font-size: clamp(28px, 5vw, 48px); font-weight: 800; line-height: 1.15; margin-bottom: 20px; color: var(--white); }
  .article-title .accent { color: var(--lime); }
  .article-subtitle { font-size: 18px; color: var(--white-dim); font-weight: 300; line-height: 1.7; margin-bottom: 40px; }
  .article-meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
  .author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; color: var(--black); flex-shrink: 0; }
  .author-info { display: flex; flex-direction: column; }
  .author-name { font-size: 14px; font-weight: 600; color: var(--white); }
  .author-title-text { font-size: 12px; color: var(--grey-muted); }
  .meta-divider { width: 1px; height: 32px; background: var(--grey-border); }
  .meta-item { font-size: 13px; color: var(--grey-muted); display: flex; align-items: center; gap: 6px; }
  .meta-item svg { opacity: 0.5; }

  /* ── ARTICLE BODY ── */
  .article-body { max-width: var(--article-max); margin: 0 auto; padding: 64px 5% 80px; }

  /* Typography */
  .article-body p { font-size: 17px; color: var(--white-dim); line-height: 1.85; font-weight: 300; margin-bottom: 24px; }
  .article-body p strong { color: var(--white); font-weight: 600; }
  .article-body h2 { font-size: clamp(20px, 3vw, 28px); font-weight: 800; color: var(--white); margin: 56px 0 20px; line-height: 1.3; }
  .article-body h2::before { content: ''; display: block; width: 32px; height: 3px; background: var(--lime); border-radius: 2px; margin-bottom: 16px; }
  .article-body ul, .article-body ol { margin: 0 0 24px 0; padding-right: 0; list-style: none; }
  .article-body ul li, .article-body ol li { font-size: 17px; color: var(--white-dim); font-weight: 300; line-height: 1.75; margin-bottom: 10px; padding-left: 24px; position: relative; }
  .article-body ul li::before { content: ''; position: absolute; left: 0; top: 12px; width: 6px; height: 6px; background: var(--lime); border-radius: 50%; }
  .article-body ol { counter-reset: ol-counter; }
  .article-body ol li { counter-increment: ol-counter; }
  .article-body ol li::before { content: counter(ol-counter) "."; position: absolute; left: 0; top: 0; color: var(--lime); font-weight: 700; font-size: 15px; }

  /* Pull quote */
  .pull-quote { border-left: 3px solid var(--lime); padding: 24px 32px; margin: 40px 0; background: var(--lime-dim); border-radius: 0 12px 12px 0; }
  .pull-quote p { font-size: 20px; font-weight: 600; color: var(--white); line-height: 1.55; margin: 0; font-style: italic; }
  .pull-quote cite { display: block; margin-top: 12px; font-size: 13px; color: var(--grey-muted); font-style: normal; font-weight: 500; }

  /* Section separator */
  .section-sep { border: none; border-top: 1px solid var(--grey-border); margin: 56px 0; }

  /* ── AUTHOR BIO ── */
  .author-bio { background: var(--grey-mid); border: 1px solid var(--grey-border); border-radius: 16px; padding: 32px; margin: 56px 0 40px; display: flex; gap: 24px; align-items: flex-start; }
  .author-bio-avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--lime); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; color: var(--black); flex-shrink: 0; }
  .author-bio-content h4 { font-size: 16px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
  .author-bio-content .bio-role { font-size: 13px; color: var(--lime); font-weight: 500; margin-bottom: 12px; }
  .author-bio-content p { font-size: 14px; color: var(--white-dim); line-height: 1.7; font-weight: 300; margin: 0; }
  .author-bio-links { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
  .author-bio-links a { font-size: 12px; color: var(--grey-muted); text-decoration: none; border: 1px solid var(--grey-border); border-radius: 6px; padding: 4px 10px; transition: all 0.2s; font-weight: 500; }
  .author-bio-links a:hover { color: var(--lime); border-color: var(--lime-border); }
  @media (max-width: 600px) { .author-bio { flex-direction: column; } }

  /* ── CTA BANNER ── */
  .article-cta { background: var(--grey-dark); border: 1px solid var(--grey-border); border-radius: 20px; padding: 48px 40px; text-align: center; margin: 0 0 80px; position: relative; overflow: hidden; }
  .article-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(200,254,39,0.06) 0%, transparent 60%); pointer-events: none; }
  .article-cta h3 { font-size: 26px; font-weight: 800; margin-bottom: 12px; position: relative; }
  .article-cta p { font-size: 16px; color: var(--white-dim); font-weight: 300; margin-bottom: 28px; max-width: 460px; margin-left: auto; margin-right: auto; position: relative; }
  .article-cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }
  .btn-primary { background: var(--lime); color: var(--black); font-weight: 700; font-size: 15px; padding: 13px 28px; border-radius: 8px; text-decoration: none; font-family: 'Poppins', sans-serif; transition: transform 0.2s, opacity 0.2s; display: inline-flex; align-items: center; gap: 8px; }
  .btn-primary:hover { transform: translateY(-2px); opacity: 0.9; }
  .btn-secondary { border: 1px solid var(--grey-border); color: var(--white); font-weight: 500; font-size: 15px; padding: 13px 28px; border-radius: 8px; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
  .btn-secondary:hover { border-color: var(--lime); background: var(--lime-dim); }

  /* ── RELATED ── */
  .related-section { margin-bottom: 80px; }
  .related-section h3 { font-size: 20px; font-weight: 800; margin-bottom: 24px; }
  .related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .related-card { background: var(--grey-mid); border: 1px solid var(--grey-border); border-radius: 12px; padding: 24px; text-decoration: none; transition: border-color 0.3s, transform 0.2s; display: block; }
  .related-card:hover { border-color: var(--lime-border); transform: translateY(-2px); }
  .related-tag { font-size: 10px; font-weight: 700; color: var(--lime); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 8px; }
  .related-card h4 { font-size: 15px; font-weight: 700; color: var(--white); line-height: 1.4; margin-bottom: 8px; }
  .related-card p { font-size: 13px; color: var(--grey-muted); font-weight: 300; margin: 0; }
  .related-soon { opacity: 0.5; pointer-events: none; }
  .related-soon-badge { font-size: 10px; color: var(--grey-muted); border: 1px solid var(--grey-border); border-radius: 4px; padding: 2px 6px; margin-left: 6px; }
  @media (max-width: 768px) { .related-grid { grid-template-columns: 1fr; } }

  /* ── PROGRESS BAR ── */
  .reading-progress { position: fixed; top: 72px; left: 0; right: 0; height: 2px; background: var(--grey-border); z-index: 999; }
  .reading-progress-bar { height: 100%; background: var(--lime); width: 0%; transition: width 0.1s; }

  /* ── SHARE BAR ── */
  .share-bar { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-top: 1px solid var(--grey-border); border-bottom: 1px solid var(--grey-border); margin-bottom: 56px; }
  .share-label { font-size: 13px; color: var(--grey-muted); font-weight: 500; }
  .share-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 6px 14px; border-radius: 6px; text-decoration: none; transition: all 0.2s; border: 1px solid var(--grey-border); color: var(--white-dim); }
  .share-btn:hover { border-color: var(--lime-border); color: var(--lime); }
  .share-btn.linkedin { border-color: rgba(0,119,181,0.4); }
  .share-btn.linkedin:hover { border-color: #0077b5; color: #0077b5; }
  .share-btn.copy:hover { border-color: var(--lime-border); color: var(--lime); }

  /* fade in */
  .fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .fade-up.visible { opacity: 1; transform: translateY(0); }

  
/* ── ARTICLE BODY: lead, h3, links ── */
.article-body .lead { font-size: 19px; color: var(--white); font-weight: 400; }
.article-body h3 { font-size: 19px; font-weight: 700; color: var(--white); margin: 36px 0 12px; line-height: 1.35; }
.article-body p a, .article-body li a { color: var(--lime); text-decoration: none; border-bottom: 1px solid var(--lime-border); }
.article-body p a:hover, .article-body li a:hover { border-bottom-color: var(--lime); }

/* ── KEY TAKEAWAY / DISCLOSURE ── */
.answer-box { background: var(--grey-mid); border: 1px solid var(--lime-border); border-radius: 12px; padding: 24px 28px; margin: 32px 0 40px; }
.answer-box-label { font-size: 11px; font-weight: 700; color: var(--lime); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; }
.answer-box p { margin: 0 !important; color: var(--white) !important; font-weight: 400 !important; font-size: 16px !important; }
.disclosure { font-size: 13px !important; color: var(--grey-muted) !important; border-top: 1px solid var(--grey-border); padding-top: 16px; }

/* ── TOOL TABLE ── */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 24px 0 32px; border: 1px solid var(--grey-border); border-radius: 12px; }
.tool-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.tool-table th { background: var(--grey-mid); color: var(--white); font-weight: 600; text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--grey-border); font-size: 13px; }
.tool-table td { padding: 12px 16px; border-bottom: 1px solid var(--grey-border); color: var(--white-dim); font-weight: 300; vertical-align: top; line-height: 1.6; }
.tool-table tr:last-child td { border-bottom: none; }
.tool-table td:first-child { color: var(--white); font-weight: 600; white-space: nowrap; }
.int-yes { display: inline-block; font-size: 11px; font-weight: 700; color: var(--lime); background: var(--lime-dim); border: 1px solid var(--lime-border); border-radius: 100px; padding: 2px 10px; white-space: nowrap; }

@media (max-width: 620px) {
  .table-wrap { overflow: visible; border: none; }
  .tool-table { min-width: 0; }
  .tool-table thead { display: none; }
  .tool-table, .tool-table tbody, .tool-table tr, .tool-table td { display: block; width: 100%; }
  .tool-table tr { background: var(--grey-mid); border: 1px solid var(--grey-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
  .tool-table td { border: none; padding: 2px 0; }
  .tool-table td:first-child { font-size: 15px; white-space: normal; margin-bottom: 4px; }
}

/* ── STACK MAP ── */
.stack-map { background: var(--grey-mid); border: 1px solid var(--grey-border); border-radius: 16px; padding: 28px; margin: 40px 0; }
.stack-map-title { font-size: 12px; font-weight: 700; color: var(--lime); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.stack-row { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 16px; align-items: stretch; }
.stack-col { display: flex; flex-direction: column; gap: 8px; }
.stack-col-label { font-size: 11px; font-weight: 700; color: var(--grey-muted); text-transform: uppercase; letter-spacing: 0.8px; margin-bottom: 4px; }
.stack-chip { background: var(--black); border: 1px solid var(--grey-border); border-radius: 8px; padding: 10px 12px; font-size: 13px; color: var(--white); font-weight: 500; }
.stack-core { background: var(--lime-dim); border: 2px solid var(--lime); border-radius: 12px; padding: 18px; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.stack-core strong { font-size: 15px; color: var(--white); display: block; margin-bottom: 6px; }
.stack-core span { font-size: 12.5px; color: var(--white-dim); line-height: 1.6; }
.stack-base { margin-top: 16px; background: var(--black); border: 1px dashed var(--grey-border); border-radius: 10px; padding: 14px 16px; text-align: center; font-size: 13px; color: var(--white-dim); }
.stack-base strong { color: var(--white); font-weight: 600; }
.stack-note { font-size: 12px; color: var(--grey-muted); margin-top: 14px; text-align: center; }
@media (max-width: 720px) { .stack-row { grid-template-columns: 1fr; } .stack-map { padding: 20px 16px; } }

/* ── STAGES ── */
.stages { display: grid; gap: 12px; margin: 24px 0 40px; }
.stage { display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--grey-mid); border: 1px solid var(--grey-border); border-radius: 12px; padding: 20px; }
.stage-num { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--lime); color: var(--lime); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.stage h3 { margin: 0 0 6px !important; font-size: 16px !important; }
.stage p { margin: 0 !important; font-size: 14.5px !important; }

/* ── CHECKLIST ── */
.checklist { background: var(--grey-mid); border: 1px solid var(--grey-border); border-radius: 12px; padding: 24px 28px; margin: 24px 0 40px; }
.article-body .checklist ul { margin: 0; }
.article-body .checklist li::before { content: '\2713'; background: none; width: auto; height: auto; top: 0; color: var(--lime); font-weight: 700; font-size: 14px; }

/* ── FAQ ── */
.faq { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 48px; }
.faq details { background: var(--grey-mid); border: 1px solid var(--grey-border); border-radius: 12px; padding: 18px 22px; }
.faq details[open] { border-color: var(--lime-border); }
.faq summary { font-size: 16px; font-weight: 600; color: var(--white); cursor: pointer; list-style: none; position: relative; padding-right: 28px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: -2px; color: var(--lime); font-size: 20px; }
.faq details[open] summary::after { content: '\2212'; }
.article-body .faq details p { margin: 12px 0 0; font-size: 15px; }

@media (max-width: 620px) {
  .article-body p { font-size: 15px; }
  .article-body ul li, .article-body ol li { font-size: 15px; }
  .article-body .lead { font-size: 17px; }
  .pull-quote { padding: 16px 20px; }
  .pull-quote p { font-size: 16px; }
}

/* ── HUB CHILD LIST + DRAFT BADGE ── */
.article-body .child-list li a { font-weight: 600; }
.article-body .child-list li.soon strong { font-weight: 600; color: var(--white); }
.article-body .child-list .soon-tag { font-size: 10px; font-weight: 600; color: var(--grey-muted); border: 1px solid var(--grey-border); border-radius: 4px; padding: 1px 6px; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.draft-badge { font-size: 10px; font-weight: 700; color: #000; background: var(--lime); border-radius: 4px; padding: 1px 6px; margin-left: 6px; text-transform: uppercase; letter-spacing: 0.5px; }

/* Mid-article CTA (middle of the funnel) */
.article-body .mid-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--grey-mid); border: 1px solid var(--lime-border); border-left: 4px solid var(--lime); border-radius: 14px; padding: 26px 28px; margin: 40px 0 48px; }
.article-body .mid-cta-text { flex: 1 1 320px; min-width: 0; }
.article-body .mid-cta-eyebrow { display: block; font-size: 11px; font-weight: 700; color: var(--lime); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 6px; }
.article-body .mid-cta p { font-size: 15px; color: var(--white-dim); margin: 0; line-height: 1.6; }
.article-body .mid-cta p.mid-cta-title { font-size: 20px; font-weight: 700; color: var(--white); margin: 0 0 6px; line-height: 1.3; }
.article-body .mid-cta-btn { flex: 0 0 auto; background: var(--lime); color: var(--black); font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 10px; text-decoration: none; white-space: nowrap; }
.article-body .mid-cta-btn:hover { filter: brightness(0.92); }
