/**
 * AskOptimize V2 compatibility layer for controlled historical imports.
 *
 * Front-end rules are enabled only by the body class derived from the signed
 * migration fingerprint. The editor scope lets reviewers inspect the same
 * components in Gutenberg. No selector intentionally targets ordinary V2
 * pages and no legacy script is restored.
 */

:where(.ao-migrated-content, .editor-styles-wrapper) {
  --ao-legacy-positive: #12805c;
  --ao-legacy-warning: #9a6700;
  --ao-legacy-danger: #b42318;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .reveal {
  visibility: visible;
  opacity: 1;
  transform: none;
}

/* Historical landing and local pages. */
:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-breadcrumb,
:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-section,
:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-hero,
:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-final {
  width: min(1080px, calc(100% - 48px));
  max-width: 1080px;
  margin-inline: auto;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .entry-content > :is(.atk-sober-breadcrumb, .atk-sober-section, .atk-sober-hero, .atk-sober-final) {
  max-width: 1080px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 22px;
  overflow-x: auto;
  color: var(--ao-muted);
  font-size: max(13px, var(--ao-fs-caption));
  white-space: nowrap;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-breadcrumb a {
  color: var(--ao-blue-dark);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-breadcrumb a:hover {
  text-decoration-color: currentColor;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-hero {
  max-width: 900px;
  padding-block: clamp(56px, 8vw, 88px);
  text-align: center;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-eyebrow {
  margin: 0 0 14px;
  color: var(--ao-blue-dark);
  font-size: max(13px, var(--ao-fs-caption));
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-hero h1 {
  max-width: 820px;
  margin-inline: auto;
  font-family: var(--ao-display);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 1;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-lead {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--ao-muted);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 30px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-btn, .atk-btn, .btn) {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-control);
  background: var(--ao-glass-surface);
  color: var(--ao-navy);
  box-shadow: var(--ao-glass-shadow);
  font-size: max(15px, var(--ao-fs-ui));
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-btn, .atk-btn, .btn):hover {
  transform: translateY(-1px);
  border-color: var(--ao-blue);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-btn-primary, .atk-btn-primary, .btn-primary, a.btn.btn-large[href*="audit-gratuit"]) {
  min-height: var(--ao-cta-height);
  padding: var(--ao-cta-padding-block) var(--ao-cta-padding-inline);
  border-color: var(--ao-action);
  border-radius: var(--ao-cta-radius);
  background: var(--ao-action);
  color: var(--ao-on-action);
  box-shadow: none;
  font-size: var(--ao-cta-font-size);
  font-weight: var(--ao-cta-font-weight);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-btn-primary, .atk-btn-primary, .btn-primary, a.btn.btn-large[href*="audit-gratuit"]):hover {
  transform: translateY(-2px);
  border-color: var(--ao-action-hover);
  background: var(--ao-action-hover);
  color: var(--ao-on-action);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-section {
  padding-block: clamp(58px, 7vw, 82px);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-band {
  width: 100%;
  max-width: none;
  padding: clamp(58px, 7vw, 82px) max(24px, calc((100vw - 1080px) / 2));
  border-block: 1px solid var(--ao-border);
  background: var(--ao-soft);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .entry-content > .atk-sober-band {
  max-width: none;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-section-head {
  max-width: 720px;
  margin: 0 auto 34px;
  text-align: center;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-section-head > p:not(.atk-sober-eyebrow) {
  margin: 14px auto 0;
  color: var(--ao-muted);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-grid, .atk-sober-grid-2, .atk-sober-grid-3, .atk-sober-stack, .atk-sober-steps) {
  display: grid;
  gap: 18px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-grid-3, .atk-sober-steps) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 52px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-card, .atk-sober-price, .atk-sober-offer, .atk-sober-steps article, .atk-sober-faq details, .atk-sober-service-list a) {
  border: 1px solid var(--ao-glass-border);
  border-radius: var(--ao-radius-card);
  background: var(--ao-glass-surface);
  box-shadow: var(--ao-glass-shadow);
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-card, .atk-sober-steps article) {
  padding: 24px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-card > span,
:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-steps article > span {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--ao-blue-dark);
  font-size: max(13px, var(--ao-fs-caption));
  font-weight: 800;
  text-transform: uppercase;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-card, .atk-sober-price, .atk-sober-offer, .atk-sober-steps, .atk-sober-faq) p,
:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-price, .atk-sober-offer) li {
  color: var(--ao-muted);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-price {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 16px;
  padding: 28px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-price > strong {
  font-family: var(--ao-display);
  font-size: 34px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-offer {
  display: grid;
  max-width: 820px;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  margin-inline: auto;
  padding: 30px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-faq {
  max-width: 820px;
  margin-inline: auto;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-faq details {
  padding: 0;
  overflow: hidden;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-faq details + details {
  margin-top: 10px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-faq summary {
  padding: 20px 22px;
  font-weight: 700;
  list-style: none;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-faq summary::after {
  content: "+";
  float: right;
  color: var(--ao-blue-dark);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-faq details[open] summary::after {
  content: "−";
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-faq details > :not(summary) {
  padding-inline: 22px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-final {
  max-width: 860px;
  margin-block: 36px 86px;
  padding: 42px;
  border: 1px solid var(--ao-glass-border);
  border-radius: var(--ao-radius-band);
  background: var(--ao-glass-surface);
  box-shadow: var(--ao-glass-shadow);
  text-align: center;
  backdrop-filter: blur(20px) saturate(145%);
  -webkit-backdrop-filter: blur(20px) saturate(145%);
}

/* Long-form articles and common historical editorial components. */
:where(.ao-migrated-content, .editor-styles-wrapper) :is(.tip-box, .warning-box, .success-box, .highlight-box, .fix-box, .symptom-box, .formula-box, .platform-box, .phase-block) {
  margin-block: 32px;
  padding: 24px 28px;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-card);
  background: var(--ao-soft);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .tip-box,
:where(.ao-migrated-content, .editor-styles-wrapper) .success-box {
  border-color: color-mix(in srgb, var(--ao-legacy-positive) 35%, var(--ao-border));
  background: color-mix(in srgb, var(--ao-legacy-positive) 9%, var(--ao-white));
}

:where(.ao-migrated-content, .editor-styles-wrapper) .warning-box {
  border-color: color-mix(in srgb, var(--ao-legacy-warning) 38%, var(--ao-border));
  background: color-mix(in srgb, var(--ao-legacy-warning) 9%, var(--ao-white));
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.checklist, .warning-list) {
  padding: 0;
  list-style: none;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.checklist, .warning-list) li {
  position: relative;
  padding: 7px 0 7px 30px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ao-blue-dark);
  font-weight: 800;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .warning-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  color: var(--ao-legacy-warning);
  font-weight: 800;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.comparison-table, .price-table, .metric-table) {
  display: table;
  width: 100%;
  margin-block: 32px;
  overflow: hidden;
  border: 1px solid var(--ao-border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--ao-radius-card);
  background: var(--ao-white);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.comparison-table, .price-table, .metric-table) :is(th, td) {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ao-border);
  text-align: left;
  vertical-align: top;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.comparison-table, .price-table, .metric-table) th {
  background: var(--ao-ink);
  color: var(--ao-on-ink);
  font-size: max(14px, var(--ao-fs-small));
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.comparison-table, .price-table, .metric-table) tr:last-child td {
  border-bottom: 0;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.before-after-grid, .before-after, .pros-cons, .stat-grid) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-block: 32px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.before-card, .before-col, .pros, .after-card, .after-col, .cons, .stat-card, .result-card, .use-case-card, .sector-card, .signal-card, .perf-card, .aarrr-card) {
  padding: 24px;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-card);
  background: var(--ao-glass-surface);
  box-shadow: var(--ao-shadow);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.cta-box, .promo-card, .article-cta, .article-cta-block, .atk-cta-block, .article-roi-cta, .article-lead-magnet, .newsletter-inline, .article-intent-bridge) {
  position: relative;
  margin-block: 40px;
  padding: clamp(26px, 5vw, 38px);
  overflow: hidden;
  border: 1px solid var(--ao-glass-border);
  border-radius: var(--ao-radius-band);
  background: var(--ao-glass-surface);
  box-shadow: var(--ao-glass-shadow);
  backdrop-filter: blur(22px) saturate(155%);
  -webkit-backdrop-filter: blur(22px) saturate(155%);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.promo-card-badge, .article-intent-bridge__eyebrow) {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 12px;
  border: 1px solid color-mix(in srgb, var(--ao-blue) 35%, var(--ao-border));
  border-radius: 999px;
  background: color-mix(in srgb, var(--ao-blue) 10%, transparent);
  color: var(--ao-blue-dark);
  font-size: max(12px, var(--ao-fs-caption));
  font-weight: 800;
  text-transform: uppercase;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.promo-card-title, .newsletter-inline-title, .article-intent-bridge__title) {
  margin: 0 0 10px;
  font-family: var(--ao-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.article-lead-magnet__body, .article-roi-cta__body, .article-intent-bridge__body) {
  position: relative;
  z-index: 1;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.newsletter-inline-icon, .article-roi-cta__icon, .sector-icon) {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ao-blue) 12%, var(--ao-white));
  color: var(--ao-blue-dark);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.newsletter-inline-form, .article-intent-bridge__actions) {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.promo-card-desc, .promo-card-note, .newsletter-inline-desc, .article-intent-bridge__text) {
  color: var(--ao-muted);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .promo-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 20px 24px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .promo-card-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ao-muted);
  font-size: max(13px, var(--ao-fs-caption));
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.promo-card-cta, .article-intent-bridge__link) {
  display: inline-flex;
  min-height: var(--ao-cta-height);
  align-items: center;
  justify-content: center;
  padding: var(--ao-cta-padding-block) var(--ao-cta-padding-inline);
  border: 1px solid var(--ao-action);
  border-radius: var(--ao-cta-radius);
  background: var(--ao-action);
  color: var(--ao-on-action);
  font-size: var(--ao-cta-font-size);
  font-weight: var(--ao-cta-font-weight);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.promo-card-cta, .article-intent-bridge__link):hover {
  transform: translateY(-2px);
  border-color: var(--ao-action-hover);
  background: var(--ao-action-hover);
  color: var(--ao-on-action);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-vote,
:where(.ao-migrated-content, .editor-styles-wrapper) .article-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-block: 32px;
  padding-block: 22px;
  border-block: 1px solid var(--ao-border);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.article-vote-label, .article-share-label) {
  color: var(--ao-muted);
  font-size: max(13px, var(--ao-fs-caption));
  font-weight: 700;
  text-transform: uppercase;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-vote-btn,
:where(.ao-migrated-content, .editor-styles-wrapper) .article-share-btn {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid var(--ao-border);
  border-radius: 999px;
  background: var(--ao-white);
  color: var(--ao-muted);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-share-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-author-bio {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-block: 40px;
  padding: 28px;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-card);
  background: var(--ao-soft);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-author-bio-avatar {
  width: 72px;
  min-width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-author-bio-name {
  font-family: var(--ao-display);
  font-size: max(20px, var(--ao-fs-lead));
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-author-bio-desc {
  margin: 4px 0 0;
  color: var(--ao-muted);
  font-size: max(15px, var(--ao-fs-ui));
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--ao-border);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-card);
  background: var(--ao-white);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-nav-link--next {
  text-align: right;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-nav-label {
  color: var(--ao-blue-dark);
  font-size: max(12px, var(--ao-fs-caption));
  font-weight: 700;
  text-transform: uppercase;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-nav-title {
  font-family: var(--ao-display);
  font-size: max(18px, var(--ao-fs-lead));
}

:where(.ao-migrated-content, .editor-styles-wrapper) .article-related {
  margin-block: 40px;
  padding: 26px;
  border-left: 3px solid var(--ao-blue);
  border-radius: 0 var(--ao-radius-card) var(--ao-radius-card) 0;
  background: var(--ao-soft);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.faq-block, .persona-section, .wcag-level) {
  margin-block: 40px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .faq-item {
  margin-top: 10px;
  padding: 20px 22px;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-card);
  background: var(--ao-white);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-article-service-cta, .atk-article-local-cta) {
  margin-block: 36px;
  padding: 24px 28px;
  border-left: 3px solid var(--ao-blue);
  border-radius: 0 var(--ao-radius-card) var(--ao-radius-card) 0;
  background: var(--ao-soft);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .blog-card {
  display: grid;
  grid-template-columns: minmax(150px, 0.34fr) minmax(0, 1fr);
  gap: 0;
  margin-block: 24px;
  overflow: hidden;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-card);
  background: var(--ao-white);
  box-shadow: var(--ao-shadow);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .blog-image {
  min-height: 100%;
  background: var(--ao-soft);
}

:where(.ao-migrated-content, .editor-styles-wrapper) .blog-image img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  border-radius: 0;
  object-fit: cover;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .blog-card-body {
  padding: 24px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .blog-category {
  color: var(--ao-blue-dark);
  font-size: max(12px, var(--ao-fs-caption));
  font-weight: 800;
  text-transform: uppercase;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .blog-title {
  margin: 8px 0;
  font-family: var(--ao-display);
  font-size: 24px;
  line-height: 1.1;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .blog-excerpt {
  margin: 0;
  color: var(--ao-muted);
  font-size: max(15px, var(--ao-fs-ui));
}

:where(.ao-migrated-content, .editor-styles-wrapper) .blog-card-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--ao-blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.btn-large, .atk-btn-xxl) {
  min-height: 54px;
  padding: 15px 26px;
  font-size: max(17px, var(--ao-fs-body));
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-btn-ghost, .atk-sober-btn-secondary) {
  border-color: var(--ao-border);
  background: transparent;
  color: var(--ao-navy);
  box-shadow: none;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.step-number, .timeline-number, .aarrr-letter, .stat-number) {
  display: inline-flex;
  min-width: 36px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--ao-soft);
  color: var(--ao-blue-dark);
  font-family: var(--ao-display);
  font-weight: 800;
}

:where(.ao-migrated-content, .editor-styles-wrapper) .timeline-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  margin-block: 22px;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.timeline-content, .persona-card, .temoignage-exemple, .template-block) {
  padding: 22px;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-card);
  background: var(--ao-white);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.article-quote, blockquote.article-quote) {
  margin-block: 32px;
  padding: 24px 28px;
  border-left: 3px solid var(--ao-blue);
  border-radius: 0 var(--ao-radius-card) var(--ao-radius-card) 0;
  background: var(--ao-soft);
  font-size: max(19px, var(--ao-fs-lead));
  font-style: italic;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.star-rating, .wcag-level, .level-a, .level-aa, .level-aaa, .sanction-badge) {
  color: var(--ao-blue-dark);
  font-weight: 700;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.code-block, pre) {
  max-width: 100%;
  padding: 22px;
  overflow-x: auto;
  border: 1px solid var(--ao-border);
  border-radius: var(--ao-radius-card);
  background: var(--ao-ink);
  color: var(--ao-on-ink);
  font: max(14px, var(--ao-fs-small))/1.6 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.keyword, .selector, .property, .code-key) {
  color: var(--ao-blue);
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.string, .value, .code-value) {
  color: #86efac;
}

:where(.ao-migrated-content, .editor-styles-wrapper) :is(.comment, .code-comment) {
  color: #a5b4c4;
  font-style: italic;
}

/* One historical article carries a generic Tailwind blue in an inline
 * comparison card. Keep the source article intact while normalizing the
 * rendered surface to the AskOptimize brand system. */
:where(.ao-migrated-content, .editor-styles-wrapper) [style*="background: #dbeafe" i] {
  background: var(--ao-pale) !important;
}

:where(.ao-migrated-content, .editor-styles-wrapper) [style*="border-color: #2563eb" i] {
  border-color: var(--ao-blue) !important;
}

@media (max-width: 760px) {
  :where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-hero {
    width: 100%;
    padding: 48px 24px 54px;
    text-align: left;
  }

  :where(.ao-migrated-content, .editor-styles-wrapper) .atk-sober-actions {
    justify-content: flex-start;
  }

  :where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-grid-2, .atk-sober-grid-3, .atk-sober-steps, .atk-sober-split, .atk-sober-offer, .before-after-grid, .before-after, .pros-cons, .stat-grid, .article-nav) {
    grid-template-columns: 1fr;
  }

  :where(.ao-migrated-content, .editor-styles-wrapper) :is(.comparison-table, .price-table, .metric-table) {
    display: block;
    overflow-x: auto;
  }

  :where(.ao-migrated-content, .editor-styles-wrapper) .article-author-bio {
    align-items: flex-start;
    flex-direction: column;
  }

  :where(.ao-migrated-content, .editor-styles-wrapper) .blog-card {
    grid-template-columns: 1fr;
  }

  :where(.ao-migrated-content, .editor-styles-wrapper) .article-nav-link--next {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.ao-migrated-content, .editor-styles-wrapper) :is(.atk-sober-btn, .atk-btn, .btn) {
    transition: none;
  }
}
