/* Artiweave · article/content pages — extends style.css (Loom system).
   Loaded AFTER style.css. Scoped under body.page so nothing leaks
   into the landing page. */

body.page { background: var(--paper); color: var(--ink); }

/* Nav on light pages: keep the ink bar readable from the top */
body.page .nav {
  background: rgba(16, 17, 20, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}

/* ---------- Article shell ---------- */
.article-main { padding-top: 96px; }
.article-head {
  max-width: 760px; margin: 0 auto;
  padding: 72px 28px 20px;
}
.article-head h1 {
  font-size: clamp(32px, 4.6vw, 48px);
  line-height: 1.08;
}
.article-meta {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: .04em;
  color: var(--n500);
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 6px 18px;
}
.article-lede {
  font-size: 19px; line-height: 1.6;
  color: var(--n600);
  margin-top: 22px;
}

.article-body {
  max-width: 760px; margin: 0 auto;
  padding: 28px 28px 96px;
}
.article-body > * + * { margin-top: 20px; }
.article-body h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin-top: 56px;
}
.article-body h3 { margin-top: 36px; }
.article-body p, .article-body li { font-size: 17px; line-height: 1.7; color: var(--ink-2); }
.article-body ul, .article-body ol { padding-left: 24px; }
.article-body li { margin-top: 8px; }
.article-body li::marker { color: var(--n300); }
.article-body a { color: var(--cobalt-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.article-body a:hover { color: var(--cobalt); }
.article-body strong { font-weight: 600; }
.article-body figure { margin: 32px 0; }

/* ---------- Big stat blocks (stats pages) ---------- */
.ap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 32px 0; }
.ap-stat {
  background: var(--white); border: 1px solid var(--n100);
  border-radius: var(--r-lg);
  padding: 22px 22px 18px;
}
.ap-stat-num {
  font-family: var(--mono); font-weight: 500;
  font-size: 34px; letter-spacing: -0.02em;
  color: var(--cobalt-600);
  font-variant-numeric: tabular-nums;
  display: block; line-height: 1.1;
}
.ap-stat-label { display: block; font-size: 14px; line-height: 1.45; color: var(--n600); margin-top: 8px; }
.ap-stat-src { display: block; font-family: var(--mono); font-size: 11px; margin-top: 10px; }
.ap-stat-src a { color: var(--n500); text-decoration: underline; }

/* ---------- Tables ---------- */
.ap-table-scroll { overflow-x: auto; margin: 28px 0; background: var(--white); border: 1px solid var(--n100); border-radius: var(--r-lg); }
.ap-table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.5; }
.ap-table th {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--n500); text-align: left;
  padding: 14px 18px 10px; border-bottom: 1px solid var(--n100);
  white-space: nowrap;
}
.ap-table td { padding: 12px 18px; border-bottom: 1px solid var(--n100); vertical-align: top; color: var(--ink-2); }
.ap-table tr:last-child td { border-bottom: none; }

/* ---------- Callout / key-answer box ---------- */
.ap-callout {
  border-left: 3px solid var(--cobalt);
  background: var(--white);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.ap-callout-kicker {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--cobalt-600); margin-bottom: 8px;
}
.ap-callout p { margin: 0; }
.ap-callout p + p { margin-top: 10px; }

/* ---------- FAQ blocks ---------- */
.ap-faq { margin: 32px 0; }
.ap-faq h3 { margin-top: 28px; font-size: 18px; }
.ap-faq h3 + p { margin-top: 8px; }

/* ---------- Sources ---------- */
.ap-sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--n200); }
.ap-sources h2 { font-size: 20px; margin-top: 0; }
.ap-sources ol { padding-left: 24px; margin-top: 12px; }
.ap-sources li { font-size: 14px; color: var(--n600); overflow-wrap: anywhere; }

/* ---------- Inline CTA band ---------- */
.ap-cta {
  background: var(--ink); color: var(--paper);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  margin: 56px 0 0;
}
.ap-cta h2 { margin-top: 0; font-size: clamp(24px, 3vw, 30px); color: var(--paper); }
.ap-cta p { color: var(--steel); margin-top: 10px; }
.ap-cta .capture { margin-top: 24px; }
.ap-cta .capture input { background: rgba(245,246,248,.06); color: var(--paper); border-color: rgba(245,246,248,.18); }
.ap-cta .capture input::placeholder { color: var(--n500); }
.ap-cta .capture input:focus { border-color: var(--cobalt); }
.ap-cta .capture-note { color: var(--steel); }

/* ---------- Breadcrumb / footer resources ---------- */
.ap-crumb {
  font-family: var(--mono); font-size: 12px;
  color: var(--n500); letter-spacing: .04em;
}
.ap-crumb a { color: var(--n500); }
.ap-crumb a:hover { color: var(--cobalt-600); }

.footer-resources {
  max-width: var(--container); margin: 0 auto;
  padding: 0 28px 8px;
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: center;
}
.footer-resources a {
  font-family: var(--mono); font-size: 12px;
  color: var(--n500); letter-spacing: .02em;
}
.footer-resources a:hover { color: var(--paper); }

/* ---------- Homepage additions (loaded on index too) ---------- */
.stat-sources {
  font-size: 12px; letter-spacing: .02em;
  color: var(--n500);
  margin-top: 28px;
}
.stat-sources a { color: var(--n500); text-decoration: underline; text-underline-offset: 2px; }
.stat-sources a:hover { color: var(--cobalt-600); }

.faq-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 36px 56px;
}
.faq-item h3 { margin-bottom: 10px; }
.faq-item p { color: var(--n600); font-size: 15.5px; line-height: 1.65; }
.faq-item a { color: var(--cobalt-600); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.faq-item a:hover { color: var(--cobalt); }
@media (max-width: 760px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } }

@media (max-width: 560px) {
  .article-head { padding-top: 48px; }
  .article-body h2 { margin-top: 44px; }
  .ap-cta { padding: 30px 24px; }
}
