/* Blog article shared styles. Used by templated articles under public/blog/. */
.article-hero { padding: 32px 0 8px; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ch-ink-3); margin-bottom: 10px; }
.article-meta .pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--ch-accent); font-weight: 600; text-transform: uppercase; padding: 3px 9px; border-radius: 6px; background: var(--ch-accent-soft); }
.article-body { max-width: 1200px; margin: 0 auto; background: var(--ch-glass-bg); border: 1px solid var(--ch-glass-border); border-radius: 14px; padding: 40px 48px; box-shadow: var(--ch-glass-shadow); }
@media (max-width: 720px) { .article-body { padding: 24px; } }
.article-body h1 { font-size: clamp(26px, 3.8vw, 38px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 20px; color: var(--ch-ink); }
.article-body h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 32px 0 12px; color: var(--ch-ink); padding-top: 18px; border-top: 1px solid var(--ch-line); }
.article-body h2:first-of-type { border-top: 0; padding-top: 0; }
.article-body h3 { font-size: 16px; font-weight: 600; margin: 22px 0 8px; color: var(--ch-ink); }
.article-body p { font-size: 15px; color: var(--ch-ink-2); line-height: 1.75; margin: 0 0 14px; }
.article-body strong { color: var(--ch-ink); font-weight: 600; }
.article-body code { background: var(--ch-accent-soft); padding: 2px 6px; border-radius: 4px; font-family: var(--mono); font-size: 13px; color: var(--ch-ink); }
.article-body blockquote {
  border-left: 3px solid var(--ch-accent); margin: 20px 0;
  padding: 8px 22px; color: var(--ch-ink); font-size: 15.5px;
  line-height: 1.7; font-style: italic; background: var(--ch-accent-soft);
  border-radius: 0 8px 8px 0;
}
.article-body ul, .article-body ol { font-size: 15px; color: var(--ch-ink-2); line-height: 1.75; padding-left: 22px; margin: 0 0 16px; }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--ch-accent); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.tldr { background: var(--ch-accent-soft); border: 1px solid var(--ch-glass-border); border-radius: 12px; padding: 18px 22px; margin: 0 0 26px; }
.tldr .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--ch-accent); font-weight: 700; text-transform: uppercase; margin-bottom: 6px; display: block; }
.tldr p { margin: 0; font-size: 14.5px; color: var(--ch-ink); }
.compare-table, .params-table, .test-table, .levels-table, .matrix-table { width: 100%; border-collapse: collapse; margin: 18px 0 22px; font-size: 13.5px; }
.compare-table th, .compare-table td,
.params-table th, .params-table td,
.test-table th, .test-table td,
.levels-table th, .levels-table td,
.matrix-table th, .matrix-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ch-line); vertical-align: top; }
.compare-table th, .params-table th, .test-table th, .levels-table th, .matrix-table th { background: var(--ch-accent-soft); color: var(--ch-ink); font-weight: 600; font-size: 12.5px; }
.compare-table td, .params-table td, .test-table td, .levels-table td, .matrix-table td { color: var(--ch-ink-2); }
.compare-table td:first-child, .params-table td:first-child, .test-table td:first-child, .levels-table td:first-child, .matrix-table td:first-child { color: var(--ch-ink); font-weight: 600; width: 28%; }
.checklist { background: var(--ch-glass-bg); border: 1px solid var(--ch-glass-border); border-radius: 12px; padding: 22px 26px; margin: 18px 0 22px; }
.checklist h3 { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.checklist ul { list-style: none; padding: 0; margin: 0; }
.checklist li { font-size: 14px; color: var(--ch-ink-2); padding-left: 26px; position: relative; margin-bottom: 8px; line-height: 1.6; }
.checklist li::before { content: "▢"; position: absolute; left: 0; top: 0; color: var(--ch-accent); font-weight: 700; }
.signal { background: var(--ch-glass-bg); border: 1px solid var(--ch-glass-border); border-radius: 10px; padding: 16px 20px; margin: 0 0 12px; }
.signal .n { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ch-accent); font-weight: 700; text-transform: uppercase; display: block; margin-bottom: 6px; }
.signal .t { font-size: 15px; font-weight: 600; color: var(--ch-ink); margin: 0 0 6px; }
.signal p { margin: 0; font-size: 14px; }
.phase { background: var(--ch-glass-bg); border: 1px solid var(--ch-glass-border); border-radius: 12px; padding: 22px 26px; margin: 18px 0; }
.phase .ph-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 10px; }
.phase .ph-day { font-family: var(--mono); font-size: 12px; letter-spacing: 0.18em; color: var(--ch-accent); font-weight: 700; text-transform: uppercase; }
.phase .ph-title { font-size: 17px; font-weight: 600; color: var(--ch-ink); }
.phase ul { list-style: none; padding: 0; margin: 8px 0 0; }
.phase li { font-size: 14px; color: var(--ch-ink-2); padding-left: 26px; position: relative; margin-bottom: 8px; line-height: 1.6; }
.phase li::before { content: "▢"; position: absolute; left: 0; top: 0; color: var(--ch-accent); font-weight: 600; }
.formula { background: var(--ch-glass-bg); border: 1px solid var(--ch-glass-border); border-radius: 10px; padding: 14px 18px; margin: 14px 0; font-family: var(--mono); font-size: 14px; color: var(--ch-ink); text-align: center; }
.num-head { display: flex; align-items: baseline; gap: 12px; }
.num-head .num { font-family: var(--mono); font-size: 18px; color: var(--ch-accent); font-weight: 700; letter-spacing: 0.02em; }
.author-box { display: flex; gap: 14px; align-items: center; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--ch-line); }
.author-box .av { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--ch-accent), var(--ch-accent-2)); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 600; }
.author-box .txt .n { font-size: 13.5px; font-weight: 600; color: var(--ch-ink); }
.author-box .txt .r { font-size: 12px; color: var(--ch-ink-3); }
.disclaimer { font-size: 12.5px; color: var(--ch-ink-3); margin-top: 22px; }
.prev-next { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 26px 0 0; padding-top: 24px; border-top: 1px solid var(--ch-line); }
@media (max-width: 640px) { .prev-next { grid-template-columns: 1fr; } }
.prev-next .pn-link { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--ch-glass-border); border-radius: 10px; background: var(--ch-glass-bg); color: inherit; text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.prev-next .pn-link:hover { border-color: var(--ch-accent); transform: translateY(-1px); text-decoration: none; }
.prev-next .pn-prev { text-align: left; }
.prev-next .pn-next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .prev-next .pn-next { grid-column: 1; } }
.prev-next .pn-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--ch-accent); font-weight: 600; text-transform: uppercase; }
.prev-next .pn-title { font-size: 14px; font-weight: 600; color: var(--ch-ink); line-height: 1.4; }

/* Cross-links to articles not yet published are degraded to non-navigable
   placeholders by scripts/publish-blog.mjs (href -> data-pending-href) so they
   never 404, and auto-restore to real links once the target publishes. The
   degraded state is shaped so nothing reads as broken:
     - a dead prev/next card is hidden entirely;
     - a "Pour aller plus loin" list item — whose only purpose is to be a
       clickable suggestion — is hidden until its target goes live, then
       reappears as a real link (an unclickable suggestion is just noise);
     - an inline prose link degrades to plain text and still reads as a
       complete sentence.
   Browsers without :has() fall back to plain-text list items (the prior
   behaviour): degraded, never broken. */
.article-body a:not([href]) { color: inherit; font-weight: inherit; cursor: default; }
.prev-next .pn-link:not([href]) { display: none; }
.article-body li:has(a[data-pending-href]) { display: none; }

/* Hero illustration. Sits ABOVE .article-body and is allowed to span up to
   its native 1200px width — wider than the 72ch reading column — so the image
   never has to be stretched or aggressively downscaled. */
.article-hero-figure { width: 100%; max-width: 1200px; margin: 0 auto 28px; border-radius: 14px; overflow: hidden; border: 1px solid var(--ch-glass-border); background: var(--ch-glass-bg); box-shadow: 0 8px 28px rgba(0, 30, 80, 0.08); }
.article-hero-figure img { display: block; width: 100%; height: auto; }
@media (max-width: 720px) { .article-hero-figure { margin: 0 auto 18px; border-radius: 10px; } }
