/* ══ ARTICLE HERO ══ */
.article-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  align-items: center;
  padding: 132px 0 60px;
  overflow: hidden;
  text-align: center;
  background-color: var(--navy-dark);
  background-size: cover;
  background-position: center;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,26,44,.78) 0%, rgba(11,26,44,.72) 45%, rgba(11,26,44,.88) 100%);
  pointer-events: none;
}

.article-hero > .container { position: relative; z-index: 1; }
.article-hero h1 { color: #fff; }
.article-hero .section-subtitle { color: rgba(255,255,255,.85); }
.article-hero .article-category {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.30);
}
.article-hero .article-meta-item { color: rgba(255,255,255,.80); }
.article-hero .article-meta-sep { background: rgba(255,255,255,.45); }

.article-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -.03em;
  margin-bottom: 20px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.article-category {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: 4px 12px;
  border-radius: 100px;
  background: var(--primary-50);
  color: var(--navy);
  border: 1px solid var(--primary-100);
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .813rem;
  color: var(--text-tertiary);
}

.article-meta-item svg { width: 13px; height: 13px; }

.article-meta-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--border);
}

/* ══ ARTICLE LAYOUT ══ */
.article-layout { padding: 40px 0 80px; }

.article-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.article-body.prose h2 {
  font-size: 1.4rem;
  margin: 48px 0 14px;
  padding-top: 8px;
  border-top: 2px solid var(--border-light);
}

.article-body.prose h3 {
  font-size: 1.05rem;
  margin: 32px 0 10px;
  color: var(--navy);
}

.article-body.prose p {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 18px;
}

.article-body.prose ul { margin-bottom: 20px; }

.article-body.prose li {
  margin-bottom: 8px;
  line-height: 1.75;
}

.article-body.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Stat cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: .813rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stat-source {
  font-size: .688rem;
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* Highlight box */
.highlight-box {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 24px 0;
  font-size: .938rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.highlight-box strong { color: var(--navy); }

/* Calcul box */
.calc-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 32px 0;
}

.calc-box-title {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.calc-formula {
  font-size: .938rem;
  font-weight: 600;
  color: var(--navy);
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 12px 18px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.calc-example {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.calc-col {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 14px 16px;
}

.calc-col-label {
  font-size: .688rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.calc-col-bad { border-left: 3px solid #ef4444; }
.calc-col-good { border-left: 3px solid #16a34a; }

.calc-col-value {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: 4px;
}

.calc-col-bad .calc-col-value { color: #ef4444; }
.calc-col-good .calc-col-value { color: #16a34a; }

.calc-col-desc {
  font-size: .75rem;
  color: var(--text-tertiary);
}

.calc-result {
  margin-top: 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.calc-result-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
}

.calc-result-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.04em;
  white-space: nowrap;
}

/* Error card */
.error-card {
  background: #fff8f8;
  border: 1px solid #fecaca;
  border-left: 3px solid #ef4444;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 16px 0;
  font-size: .938rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.error-card strong { color: #b91c1c; }

/* Solution card */
.solution-card-article {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 3px solid #16a34a;
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 16px 0;
  font-size: .938rem;
  color: var(--text-secondary);
  line-height: 1.75;
}

.solution-card-article strong { color: #15803d; }

/* Inline CTA box */
.article-cta-box {
  background: linear-gradient(135deg, var(--navy-dark), #1e3a5f);
  border-radius: var(--radius-xl);
  padding: 36px 40px;
  margin: 48px 0;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #fff !important;
  margin-bottom: 10px !important;
  letter-spacing: -.02em;
}

.article-cta-box p {
  font-size: .938rem !important;
  color: rgba(255, 255, 255, .75) !important;
  margin-bottom: 22px !important;
  line-height: 1.6;
}

.article-cta-box .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
  font-size: .938rem;
  border-radius: var(--radius);
  transition: all .3s var(--ease);
  box-shadow: 0 4px 16px rgba(255, 255, 255, .15);
  text-decoration: none;
}

.article-cta-box .btn-cta:hover {
  background: var(--primary-50);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, .2);
}

.article-cta-box .btn-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Article footer */
.article-footer-bar {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.back-to-blog {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--accent);
  transition: gap .2s;
}

.back-to-blog:hover { gap: 10px; }
.back-to-blog svg { width: 15px; height: 15px; }

/* Related */
.related-section {
  padding: 72px 0;
  background: var(--bg-warm);
  border-top: 1px solid var(--border);
}

.related-header {
  text-align: center;
  margin-bottom: 40px;
}

.related-header h2 { font-size: 1.3rem; font-weight: 700; }

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 860px;
  margin: 0 auto;
}

.related-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all .25s var(--ease);
}

.related-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.related-card-type {
  font-size: .688rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-tertiary);
  margin-bottom: 8px;
}

.related-card h3 {
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  margin-bottom: 8px;
}

.related-card-link {
  font-size: .813rem;
  color: var(--accent);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.related-card-link svg { width: 13px; height: 13px; }

@media(max-width:768px) {
  .article-cta-box { padding: 28px 24px; }
  .stat-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .calc-example { grid-template-columns: 1fr; }
  .calc-result { flex-direction: column; align-items: flex-start; gap: 6px; }
}

.calc-col-neutral { border-left: 3px solid var(--accent); }
.calc-col-neutral .calc-col-value { color: var(--navy); }
.article-body.prose ol { margin-bottom: 20px; padding-left: 22px; }
.article-body.prose ol li { margin-bottom: 8px; line-height: 1.75; }

/* Compare table + logos */
.article-updated { font-size: .813rem !important; color: var(--text-tertiary) !important; font-style: italic; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 20px 0 28px; border: 1px solid var(--border); border-radius: var(--radius-lg); }
.compare-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .844rem; }
.compare-table th { text-align: left; padding: 10px 14px; font-size: .719rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-tertiary); background: var(--bg-warm); border-bottom: 1px solid var(--border); }
.compare-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; color: var(--text-secondary); line-height: 1.55; }
.compare-table tr:last-child td { border-bottom: none; }
.tool-logo { display: inline-flex; align-items: center; justify-content: center; width: 118px; height: 42px; padding: 6px 8px; border-radius: 8px; background: #fff; border: 1px solid var(--border-light); }
.tool-logo img { display: block; max-width: 100%; max-height: 30px; width: auto; height: auto; }
.tool-logo--dark { background: #183666; border-color: #183666; }

/* Figures + flow diagram */
.article-figure { margin: 24px 0 32px; }
.article-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.article-figure figcaption { margin-top: 10px; font-size: .813rem; color: var(--text-tertiary); text-align: center; line-height: 1.5; }
.flow-diagram { margin: 28px 0 32px; padding: 24px; background: var(--bg-warm); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.flow-title { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-tertiary); margin-bottom: 16px; text-align: center; }
.flow-row { display: grid; grid-template-columns: 1fr 28px 1.15fr 28px 1fr; align-items: center; gap: 8px; }
.flow-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; text-align: center; }
.flow-box strong { display: block; font-size: .9rem; color: var(--navy); margin-bottom: 4px; }
.flow-box span { font-size: .8rem; color: var(--text-secondary); line-height: 1.45; }
.flow-box--main { background: var(--navy); border-color: var(--navy); }
.article-body .flow-box--main strong, .article-body .flow-box--main span { color: #fff !important; }
.article-body .flow-box strong { color: var(--navy); }
.flow-arrow { text-align: center; color: var(--accent); font-size: 1.4rem; font-weight: 700; }
.flow-back { margin-top: 12px; text-align: center; font-size: .8rem; color: var(--text-tertiary); }
.flow-back::before { content: '\2190  '; color: var(--accent); font-weight: 700; }
@media(max-width:768px) {
  .flow-row { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
}

/* Wider reading column (17/11/2026): override the 780px cap of .prose in shared.css */
.article-body.prose { max-width: none; }

/* White background for article pages using blog.css */
body { background: #fff; }
.article-layout, .related-section { background: #fff; }

/* ══════════════════════════════════════════════════════════════
   Blog components v2 (17/11/2026) - see docs/blog-agent-redacteur.md 3 bis / 4
   ══════════════════════════════════════════════════════════════ */

/* Short answer box */
.answer-box { position: relative; overflow: hidden; margin: 32px 0; padding: 26px 30px 24px; border-radius: 20px; color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(45,212,191,.28) 0%, rgba(45,212,191,0) 45%), linear-gradient(135deg, #183666 0%, #0f2447 100%);
  box-shadow: 0 18px 40px -18px rgba(15,36,71,.55); }
.answer-box::after { content: ''; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; border: 28px solid rgba(85,142,247,.12); }
.answer-box-title { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-heading); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; background: rgba(45,212,191,.18); color: #5eead4; margin-bottom: 16px; }
.article-body.prose .answer-box ul { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; }
.article-body.prose .answer-box li { position: relative; padding-left: 30px; margin-bottom: 10px; color: rgba(255,255,255,.88); line-height: 1.6; }
.article-body.prose .answer-box li:last-child { margin-bottom: 0; }
.article-body.prose .answer-box li::before { content: '\2713'; position: absolute; left: 0; top: 2px; width: 19px; height: 19px; border-radius: 50%; background: var(--teal); color: #0f2447; font-size: .7rem; font-weight: 800; display: grid; place-items: center; }
.article-body.prose .answer-box strong { color: #fff; }
.article-body.prose .answer-box a { color: #5eead4; }

/* Table of contents */
.toc { position: relative; margin: 0 0 40px; padding: 26px 30px 18px; background: linear-gradient(160deg, #fff 0%, #fff 55%, var(--primary-50) 100%); border: 1px solid var(--border); border-radius: 20px; box-shadow: 0 1px 2px rgba(24,54,102,.04), 0 18px 40px -28px rgba(24,54,102,.35); overflow: hidden; }
.toc::before { content: ""; position: absolute; top: -90px; right: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(85,142,247,.16), rgba(45,212,191,.06) 55%, transparent 70%); pointer-events: none; }
.toc::after { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--accent), var(--teal)); }
.toc-title { position: relative; display: flex; align-items: center; gap: 12px; font-family: var(--font-heading); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border-light); }
.toc-title::before { content: ""; width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--navy)) ; box-shadow: 0 6px 14px -6px rgba(85,142,247,.7); -webkit-mask: none; }
.toc-title::after { content: ""; position: absolute; left: 8px; top: 8px; width: 16px; height: 16px; background: #fff; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4' cy='6' r='1.2'/%3E%3Ccircle cx='4' cy='12' r='1.2'/%3E%3Ccircle cx='4' cy='18' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M9 6h11M9 12h11M9 18h11'/%3E%3Ccircle cx='4' cy='6' r='1.2'/%3E%3Ccircle cx='4' cy='12' r='1.2'/%3E%3Ccircle cx='4' cy='18' r='1.2'/%3E%3C/svg%3E") center / contain no-repeat; }
.article-body.prose .toc ol { position: relative; list-style: none; counter-reset: toc; margin: 0; padding: 0; columns: 2; column-gap: 36px; column-rule: 1px solid var(--border-light); }
.article-body.prose .toc li { counter-increment: toc; break-inside: avoid; margin: 0; padding: 0; }
.toc a { position: relative; display: flex; align-items: baseline; gap: 14px; padding: 11px 34px 11px 10px; border-radius: 12px; color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; line-height: 1.45; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease-out); }
.toc a::before { content: counter(toc, decimal-leading-zero); flex-shrink: 0; min-width: 22px; font-family: var(--font-heading); font-size: .78rem; font-weight: 700; letter-spacing: .02em; color: var(--accent); font-variant-numeric: tabular-nums; transition: color .2s var(--ease); }
.toc a::after { content: "→"; position: absolute; right: 12px; top: 50%; transform: translate(-6px, -50%); opacity: 0; color: var(--accent); font-weight: 700; transition: opacity .2s var(--ease), transform .2s var(--ease-out); }
.toc a:hover { background: #fff; color: var(--navy); box-shadow: 0 1px 2px rgba(24,54,102,.05), 0 6px 18px -10px rgba(24,54,102,.3); }
.toc a:hover::before { color: var(--teal); }
.toc a:hover::after { opacity: 1; transform: translate(0, -50%); }
.toc a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Callouts: tip / warn / example */
.callout { --c: var(--accent); --c-soft: #eef3fc; --c-ink: #1e4480; --c-mark: '\1F4CC';
  position: relative; overflow: hidden; margin: 30px 0; padding: 22px 24px 20px; border-radius: 18px;
  background: linear-gradient(135deg, var(--c-soft) 0%, #fff 70%);
  border: 1px solid color-mix(in srgb, var(--c) 28%, #fff);
  box-shadow: 0 12px 32px -22px color-mix(in srgb, var(--c) 70%, #0f2447); }
.callout::after { content: var(--c-mark); position: absolute; right: 14px; top: 8px; font-size: 3.6rem; line-height: 1; opacity: .12; transform: rotate(10deg); pointer-events: none; }
.callout-title { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 10px; padding: 5px 12px; border-radius: 100px; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--c-ink); font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.article-body.prose .callout p { position: relative; z-index: 1; margin-bottom: 8px; font-size: .95rem; line-height: 1.7; color: #334155; }
.article-body.prose .callout p:last-child, .article-body.prose .callout ul:last-child { margin-bottom: 0; }
.article-body.prose .callout strong { color: var(--c-ink); }
.callout--tip { --c: #14b8a6; --c-soft: #e6fcf7; --c-ink: #0f766e; --c-mark: '\1F4A1'; }
.callout--warn { --c: #f59e0b; --c-soft: #fff6e0; --c-ink: #b45309; --c-mark: '\26A0\FE0F'; }
.callout--example { --c: #558ef7; --c-soft: #eef3fc; --c-ink: #1e4480; --c-mark: '\1F4CC'; }

/* Do / don't */
.do-dont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0 32px; }
.do-dont > div { overflow: hidden; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: 0 12px 30px -22px rgba(24,54,102,.4); }
.do-dont-title { padding: 12px 20px; font-size: .78rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.do-dont .do .do-dont-title { background: #dcfce7; color: #166534; }
.do-dont .dont .do-dont-title { background: #fee2e2; color: #991b1b; }
.article-body.prose .do-dont ul { list-style: none; margin: 0; padding: 14px 20px 16px; }
.article-body.prose .do-dont li { position: relative; padding-left: 26px; font-size: .9rem; margin-bottom: 10px; line-height: 1.55; }
.article-body.prose .do-dont li:last-child { margin-bottom: 0; }
.article-body.prose .do-dont li::before { position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 50%; font-size: .65rem; font-weight: 800; display: grid; place-items: center; color: #fff; }
.article-body.prose .do-dont .do li::before { content: '\2713'; background: #16a34a; }
.article-body.prose .do-dont .dont li::before { content: '\2715'; background: #ef4444; }

/* Checklist */
.article-body.prose ul.checklist { list-style: none; display: grid; gap: 10px; margin: 24px 0 32px; padding: 18px; border-radius: 20px;
  background: linear-gradient(135deg, #e6fcf7 0%, #eef3fc 100%); border: 1px solid #c9f3ea; }
.article-body.prose ul.checklist li { position: relative; margin: 0; padding: 14px 18px 14px 58px; background: #fff; border-radius: 14px; line-height: 1.55; color: #334155;
  box-shadow: 0 1px 2px rgba(24,54,102,.05), 0 8px 20px -16px rgba(24,54,102,.45); transition: transform .15s var(--ease), box-shadow .15s var(--ease); }
.article-body.prose ul.checklist li:hover { transform: translateX(3px); box-shadow: 0 1px 2px rgba(24,54,102,.05), 0 12px 26px -16px rgba(24,54,102,.55); }
.article-body.prose ul.checklist li::before { content: '\2713'; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--teal)); color: #fff; font-size: .8rem; font-weight: 800; display: grid; place-items: center; box-shadow: 0 4px 10px -4px rgba(45,212,191,.8); }
.article-body.prose ul.checklist strong { color: var(--navy); }

/* Step meta (tutorials) */
.step-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: -2px 0 18px; }
.step-meta span { font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 100px; background: var(--primary-50); color: var(--navy); border: 1px solid var(--primary-100); }

/* Copy-ready template: window look */
.copy-block { position: relative; margin: 22px 0 28px; padding: 46px 22px 18px; background: #0f172a; color: #e2e8f0; border-radius: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .844rem; line-height: 1.75; white-space: pre-wrap; overflow-x: auto; box-shadow: 0 18px 40px -22px rgba(15,23,42,.7); }
.copy-block::before { content: ''; position: absolute; left: 18px; top: 17px; width: 10px; height: 10px; border-radius: 50%; background: #f87171; box-shadow: 16px 0 0 #fbbf24, 32px 0 0 #34d399; }
.copy-block-label { position: absolute; left: 76px; top: 12px; font-family: var(--font); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; }

/* Figures */
.article-figure img { border-radius: 16px; box-shadow: 0 16px 40px -24px rgba(24,54,102,.45); }
.article-figure--schema img { border: 1px solid var(--border-light); box-shadow: none; background: #fff; padding: 8px; }

/* Charts */
.chart { margin: 30px 0 34px; padding: 24px 26px; background: linear-gradient(135deg, #eef3fc 0%, #fff 65%); border: 1px solid var(--primary-100); border-radius: 18px; box-shadow: 0 12px 32px -22px rgba(24,54,102,.4); }
.chart-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--navy); margin-bottom: 18px; }
.chart-source { margin-top: 16px; font-size: .75rem; color: var(--text-tertiary); }
.chart-bars { display: grid; gap: 12px; }
.chart-bar { display: grid; grid-template-columns: minmax(110px, 34%) 1fr; align-items: center; gap: 12px; font-size: .844rem; color: var(--text-secondary); }
.chart-bar-track { height: 28px; background: #fff; border: 1px solid var(--border-light); border-radius: 8px; overflow: hidden; }
.chart-bar-fill { height: 100%; width: var(--v, 0%); background: linear-gradient(90deg, var(--accent), var(--teal)); border-radius: 8px; display: flex; align-items: center; justify-content: flex-end; padding-right: 8px; color: #fff; font-weight: 700; font-size: .78rem; min-width: 38px; }
.chart-bar--hl .chart-bar-fill { background: var(--navy); }
.chart-donut-wrap { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.chart-donut { --v: 50; width: 156px; height: 156px; border-radius: 50%; background: conic-gradient(var(--accent) 0, var(--teal) calc(var(--v) * 1%), #dce6f8 0); display: grid; place-items: center; flex-shrink: 0; box-shadow: 0 10px 28px -14px rgba(85,142,247,.6); }
.chart-donut::after { content: attr(data-label); width: 110px; height: 110px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--font-heading); font-size: 1.55rem; font-weight: 700; color: var(--navy); }
.chart-donut-text { flex: 1; min-width: 220px; font-size: .95rem; color: var(--text-secondary); line-height: 1.65; }

@media(max-width:768px) {
  .do-dont { grid-template-columns: 1fr; }
  .article-body.prose .toc ol { columns: 1; }
  .toc { padding: 22px 18px 14px; }
  .chart-bar { grid-template-columns: 1fr; gap: 4px; }
  .callout::after { font-size: 2.6rem; }
}

/* ══ Breathing room (17/11/2026) - overrides the legacy spacing above ══ */
.article-layout { padding: 56px 0 96px; }
.article-body.prose h2 { font-size: 1.55rem; margin: 72px 0 20px; padding-top: 28px; line-height: 1.3; }
.article-body.prose h3 { font-size: 1.12rem; margin: 44px 0 14px; }
.article-body.prose p { margin-bottom: 24px; line-height: 1.85; }
.article-body.prose ul, .article-body.prose ol { margin-bottom: 28px; }
.article-body.prose li { margin-bottom: 12px; }
.answer-box { margin: 40px 0 36px; }
.toc { margin: 0 0 56px; }
.callout { margin: 40px 0; padding: 26px 28px 24px; }
.do-dont { margin: 40px 0 44px; }
.article-body.prose ul.checklist { margin: 32px 0 40px; }
.copy-block { margin: 28px 0 36px; }
.chart { margin: 44px 0 48px; padding: 28px 30px; }
.table-scroll { margin: 28px 0 40px; }
.article-figure { margin: 36px 0 48px; }
.article-figure figcaption { margin-top: 14px; }
.step-meta { margin: 0 0 22px; }
.article-cta-box { margin-top: 64px; }
.article-sources { margin-top: 64px; }

/* Donut label: centered, wraps on two lines for longer languages ("1 de cada 2") */
.chart-donut::after { box-sizing: border-box; padding: 0 14px; text-align: center; font-size: 1.3rem; line-height: 1.12; letter-spacing: -.01em; font-variant-numeric: lining-nums; }

/* Inline code (attributes, parameters) */
.article-body.prose :not(pre) > code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .84em; padding: 2px 7px; border-radius: 6px; background: var(--primary-50); color: var(--navy); border: 1px solid var(--primary-100); white-space: nowrap; }
.copy-block code { all: unset; }
