/* Blog posts on the current site design (fr/blog, en/blog). Loaded after
   styles.css and built from its tokens, plus the chart's series colours. */

.post-hero,
.post {
  max-width: 720px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  box-sizing: content-box;
}
.post-hero { padding-top: 72px; padding-bottom: 32px; }
.post-hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  margin: 14px 0 20px;
}
.post-hero .lede a,
.post a:not(.btn) { color: var(--ink); text-decoration: underline; }
.post-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-dim);
  margin-top: 20px;
}
.post { padding-bottom: 96px; }
.post .legend { padding: 0; }
.post h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin: 48px 0 14px;
}
.post p,
.post li {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-muted);
}
.post ul { padding-left: 22px; margin: 0 0 16px; }
.post li { margin-bottom: 10px; }
.post strong { color: var(--ink); font-weight: 600; }
.post-note { font-size: 15px; }

/* Chart: one row per criterion, one thin bar per tool. --v is the score,
   --max the most it could be. Series colours validated (CVD ΔE ≥ 9.2 on
   white), and every value is also printed. */
.chart {
  --series-1: #2a78d6; /* Claude + Alpaca Law */
  --series-2: #eb6834; /* Doctrine */
  margin: 0 0 40px;
  padding: 24px 24px 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 10px;
  box-shadow: var(--shadow-paper);
}
.chart-title {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0;
  margin: 0 0 4px;
}
.chart-sub { font-size: 13px; color: var(--ink-dim); margin: 0 0 14px; }
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  font-size: 13px;
  color: var(--ink-muted);
}
.legend li { margin: 0; font-size: 13px; }
.sw {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 6px;
  vertical-align: -1px;
}
.s1 { background: var(--series-1); }
.s2 { background: var(--series-2); }
.chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) repeat(2, 3.2ch);
  align-items: center;
  gap: 4px 12px;
  padding: 11px 0;
  border-top: 1px solid var(--rule);
}
.chart-head { border-top: 0; padding: 0 0 6px; }
.chart-head .num { display: flex; justify-content: flex-end; }
.chart-label { font-size: 14px; color: var(--ink); }
.chart-bars { display: grid; gap: 2px; }
.bar {
  display: block;
  height: 7px;
  border-radius: 0 4px 4px 0;
  width: calc(var(--v) / var(--max, 20) * 100%);
}
.bar:hover { filter: brightness(0.9); }
.num {
  font-size: 15px;
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}
.num-1 { font-weight: 600; color: var(--ink); }
.chart-total { border-top: 2px solid var(--ink); }
.chart-total .chart-label { font-weight: 600; }
.chart-total .bar { height: 9px; }

@media (max-width: 640px) {
  .post-hero { padding-top: 44px; padding-bottom: 28px; }
  .chart { padding: 18px 16px 6px; }
  .chart-row { grid-template-columns: minmax(0, 1fr) repeat(2, 3.2ch); }
  .chart-label { grid-column: 1 / -1; }
  .chart-head .chart-label { display: none; }
}

.post-cta {
  margin-top: 48px;
  padding: 32px 28px;
  background: var(--bg-alt);
  border-radius: 10px;
}
.post-cta h2 { margin-top: 0; }
.post-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; }
