/* Article reading styles — layered on top of styles.css (shared tokens). */

.article-page { margin-top: 66px; padding: 3.5rem 0 4rem; }

.article-container { max-width: 44rem; }

.article-back {
  display: inline-block;
  margin-bottom: 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--primary);
}
.article-back:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────── */
.article-head { margin-bottom: 2.5rem; }
.article-cat {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0 0 1rem;
}
.article-head h1 {
  font-size: clamp(2rem, 4.5vw, 2.9rem);
  font-weight: 800;
  color: var(--secondary);
  line-height: 1.12;
  text-wrap: balance;
}
.article-meta {
  margin-top: 1.1rem;
  font-size: 0.95rem;
  color: var(--muted-light);
  font-weight: 600;
}
.article-dek {
  margin-top: 1.25rem;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--muted);
  font-family: var(--font-heading);
  font-weight: 500;
}

.article-hr { border: none; border-top: 1px solid var(--card-border); margin: 0 0 2.5rem; }

/* ── Body typography ──────────────────────────────────── */
.article-body { font-size: 1.16rem; line-height: 1.75; color: #1f2937; }
.article-body > * + * { margin-top: 1.4rem; }
/* Explicit paragraph spacing — a bottom margin that beats the reset above, so
   consecutive paragraphs are clearly separated instead of running together. */
.article-body p { margin: 0 0 1.6rem; }
.article-body h2 {
  font-size: 1.6rem;
  color: var(--secondary);
  margin-top: 2.8rem;
  line-height: 1.2;
}
.article-body h3 {
  font-size: 1.25rem;
  color: var(--secondary);
  margin-top: 2rem;
}
.article-body a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.article-body a:hover { color: var(--primary-dark); }
.article-body strong { color: var(--secondary); font-weight: 700; }
.article-body ul, .article-body ol { margin: 0; padding-left: 1.4rem; }
.article-body li { margin-top: 0.5rem; }
.article-body img { border-radius: var(--radius); box-shadow: var(--shadow-sm); margin: 2rem 0; }
.article-body figure { margin: 2rem 0; }
.article-body figcaption { font-size: 0.9rem; color: var(--muted-light); text-align: center; margin-top: 0.6rem; }

.article-body blockquote {
  margin: 2rem 0;
  padding: 0.5rem 0 0.5rem 1.5rem;
  border-left: 3px solid var(--primary);
  color: var(--muted);
  font-style: italic;
}

/* Honest-gap callout — the trust device the voice relies on */
.article-callout {
  margin: 2.2rem 0;
  padding: 1.4rem 1.6rem;
  background: rgba(249, 115, 22, 0.07);
  border: 1px solid rgba(249, 115, 22, 0.25);
  border-radius: var(--radius);
}
.article-callout .callout-label {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-strong);
  margin-bottom: 0.5rem;
}
.article-callout p { margin: 0; color: var(--secondary); font-size: 1.05rem; }

/* End-of-article early-access nudge (lightweight, inline) */
.article-foot {
  margin-top: 3.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
}
.article-foot h3 { font-size: 1.4rem; color: var(--secondary); margin-bottom: 0.6rem; }
.article-foot p { color: var(--muted); margin: 0 0 1.5rem; }
.article-foot .email-form { margin: 0 auto; }

/* ── Inline workflow diagram ──────────────────────────── */
.flow-diagram { margin: 2.75rem 0; }
.flow { display: flex; align-items: stretch; gap: 0.5rem; flex-wrap: wrap; }
.flow-step {
  flex: 1 1 0; min-width: 128px;
  background: var(--light);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.1rem 0.9rem;
  text-align: center;
  display: flex; flex-direction: column; gap: 0.35rem; justify-content: center;
}
.flow-step strong { font-family: var(--font-heading); font-size: 1rem; color: var(--secondary); letter-spacing: -0.01em; }
.flow-step span { font-size: 0.82rem; line-height: 1.35; color: var(--muted); }
.flow-step.flow-out { background: linear-gradient(135deg, var(--navy-grad-a), var(--navy-grad-b)); border: none; }
.flow-step.flow-out strong { color: var(--accent); }
.flow-step.flow-out span { color: rgba(255, 255, 255, 0.78); }
.flow-arrow { display: flex; align-items: center; color: var(--primary); font-weight: 800; font-size: 1.3rem; }
.flow-diagram figcaption { font-size: 0.9rem; color: var(--muted-light); text-align: center; margin-top: 0.85rem; }
@media (max-width: 600px) {
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); align-self: center; }
}

@media (max-width: 600px) {
  .article-body { font-size: 1.08rem; }
}
