/* ============================================================
   Jaxable — article pages (/blog/*)
   Loaded after ../styles.css; only article-specific layout here.
   ============================================================ */

.article-hero {
  padding: 4rem 0 2.6rem;
  background:
    radial-gradient(ellipse 55% 65% at 85% 10%, rgba(21,122,87,0.07), transparent 70%),
    linear-gradient(180deg, #F6F7F3 0%, var(--bg) 85%);
  border-bottom: 1px solid var(--line);
}

.article-container { max-width: 820px; margin: 0 auto; padding: 0 28px; }

.back-link {
  display: inline-block;
  font-size: 0.85rem; font-weight: 700;
  color: var(--emerald); text-decoration: none;
  margin-bottom: 2rem;
}

.back-link:hover { color: var(--green); }

.article-hero h1 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }

.article-lede {
  font-size: 1.08rem; color: var(--muted);
  margin-top: 1.1rem; max-width: 46em;
}

/* Byline */

.byline {
  display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap;
  margin-top: 2rem;
}

.byline-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  object-fit: cover; filter: grayscale(1);
  flex-shrink: 0;
}

.byline-name { font-weight: 800; font-size: 0.93rem; line-height: 1.3; }

.byline-role { font-size: 0.8rem; color: var(--muted); }

.byline-meta {
  margin-left: auto;
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint);
}

/* Body */

.article-body { padding: 3rem 0 1.5rem; }

.article-body p { margin: 0 0 1.2rem; font-size: 1.01rem; max-width: none; }

.article-body h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  margin: 2.8rem 0 1rem;
}

.article-body h3 { font-size: 1.08rem; margin: 1.9rem 0 0.6rem; }

.article-body ul, .article-body ol { margin: 0 0 1.2rem 1.35rem; }

.article-body li { margin: 0.4rem 0; font-size: 0.99rem; }

.article-body li strong { color: var(--ink); }

.article-body code {
  font-family: var(--font-mono); font-size: 0.85em;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0.08em 0.4em;
}

.article-callout {
  border-left: 4px solid var(--emerald);
  background: var(--white);
  border-top: 1px solid var(--line); border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow-sm);
  padding: 1.3rem 1.6rem;
  margin: 2rem 0;
}

.article-callout p { margin: 0; font-size: 0.98rem; }

/* Outcomes panel */

.stat-panel {
  background: var(--green);
  color: #fff;
  border-radius: 18px;
  padding: 2rem 2.2rem;
  margin: 2.4rem 0;
  box-shadow: var(--shadow-md);
}

.stat-panel-title {
  font-family: var(--font-mono); font-size: 0.7rem;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: #9BD9BE;
  margin-bottom: 1.4rem;
}

.stat-panel-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem;
}

.stat-panel-grid b {
  display: block;
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.9rem; letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-panel-grid span {
  display: block;
  font-size: 0.83rem; color: rgba(255,255,255,0.72);
  margin-top: 0.35rem;
}

.stat-panel-note {
  margin-top: 1.4rem;
  font-size: 0.78rem; color: rgba(255,255,255,0.55);
}

/* How-it-works flow */

.flow { list-style: none; margin: 1.6rem 0 2rem; padding: 0; counter-reset: f; }

.flow > li {
  counter-increment: f;
  position: relative;
  padding: 1rem 0 1rem 3.3rem;
  border-bottom: 1px solid var(--line);
  margin: 0;
}

.flow > li:last-child { border-bottom: none; }

.flow > li::before {
  content: counter(f, decimal-leading-zero);
  position: absolute; left: 0; top: 1.05rem;
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--emerald);
  width: 2.2rem; height: 2.2rem;
  border: 1px solid var(--line-strong); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.flow h3 { margin: 0 0 0.15rem; font-size: 1rem; }

.flow p { margin: 0; font-size: 0.93rem; color: var(--muted); }

/* End matter */

.article-cta { margin: 3rem 0 4rem; }

.article-tags {
  font-family: var(--font-mono); font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--faint);
  margin: 2.5rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

/* Responsive */

@media (max-width: 640px) {
  .article-hero { padding: 2.6rem 0 2rem; }
  .article-container { padding: 0 20px; }
  .byline-meta { margin-left: 0; width: 100%; }
  .stat-panel-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .article-body { padding-top: 2.2rem; }
}
