/*
 * Shared article design system.
 * Every rule is scoped to the public article body or to the post editor canvas
 * so the editor and the saved article use the same typography and modules.
 */

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) {
  --afoc-article-red: #e32329;
  --afoc-article-red-dark: #c9181e;
  --afoc-article-ink: #082f49;
  --afoc-article-navy: #073a59;
  --afoc-article-blue: #0b4f71;
  --afoc-article-soft-blue: #eaf3f7;
  --afoc-article-mist: #f4f8fa;
  --afoc-article-line: #dce7ed;
  --afoc-article-text: #1d4258;
  --afoc-article-muted: #627684;
  width: 100%;
  color: var(--afoc-article-text);
  font-family: "Inter", Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(p, ul, ol, figure, blockquote, table) {
  margin-top: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) p {
  margin-bottom: 16px;
  color: var(--afoc-article-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.72;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) p:empty {
  display: none;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(h2, h3, h4) {
  color: var(--afoc-article-ink);
  font-family: "Inter", Arial, sans-serif;
  font-weight: 800;
  scroll-margin-top: 110px;
  text-transform: none;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) h2 {
  margin: 30px 0 13px;
  font-size: 19px;
  line-height: 1.35;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) h3 {
  margin: 24px 0 11px;
  font-size: 17px;
  line-height: 1.4;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) h4 {
  margin: 20px 0 9px;
  font-size: 15px;
  line-height: 1.45;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) > :where(h2, h3, h4):first-child,
:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(.is-style-afoc-section, section) > :where(h2, h3, h4):first-child {
  margin-top: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(a:not(.wp-element-button)) {
  color: var(--afoc-article-blue);
  text-decoration: underline;
  text-decoration-color: rgba(11, 79, 113, 0.34);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 160ms ease, text-decoration-color 160ms ease;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(a:not(.wp-element-button)):hover {
  color: var(--afoc-article-red);
  text-decoration-color: currentColor;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(ul, ol) {
  margin-bottom: 18px;
  padding-left: 22px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) li {
  padding-left: 3px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) li + li {
  margin-top: 8px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) li::marker {
  color: var(--afoc-article-red);
  font-weight: 800;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(figure, .wp-block-image, .wp-block-gallery, .wp-block-embed) {
  margin-bottom: 24px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) figcaption {
  margin-top: 8px;
  color: var(--afoc-article-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(blockquote, .wp-block-quote) {
  margin-bottom: 24px;
  padding: 18px 22px;
  border: 0;
  border-left: 4px solid var(--afoc-article-red);
  color: var(--afoc-article-ink);
  background: var(--afoc-article-mist);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(blockquote, .wp-block-quote) p {
  color: inherit;
  font-size: 15px;
  font-weight: 700;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(blockquote, .wp-block-quote) cite {
  color: var(--afoc-article-muted);
  font-size: 11px;
  font-style: normal;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .is-style-afoc-quote {
  border-left-color: var(--afoc-article-navy);
  background: var(--afoc-article-soft-blue);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(.wp-block-table, table) {
  width: 100%;
  margin-bottom: 24px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .wp-block-table {
  overflow-x: auto;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) table {
  border-collapse: collapse;
  font-size: 12px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(th, td) {
  padding: 12px 14px;
  border: 1px solid var(--afoc-article-line);
  text-align: left;
  vertical-align: top;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) th {
  color: var(--afoc-article-ink);
  background: var(--afoc-article-soft-blue);
  font-weight: 800;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .wp-block-separator {
  margin: 28px 0;
  border: 0;
  border-top: 1px solid var(--afoc-article-line);
}

/* Section rhythm used by article patterns; the section element remains as a legacy fallback. */
:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(.wp-block-group.is-style-afoc-section, section) {
  width: 100%;
  margin: 0 0 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid var(--afoc-article-line);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(.wp-block-group.is-style-afoc-section, section) > :last-child {
  margin-bottom: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) > :where(.wp-block-group.is-style-afoc-section, section):last-child {
  margin-bottom: 0;
}

/* Advice, information and generic editorial cards. */
:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(.is-style-afoc-conseil, .is-style-afoc-information) {
  position: relative;
  width: 100%;
  min-height: 76px;
  margin: 20px 0 24px;
  padding: 18px 22px 18px 82px;
  border: 1px solid #d8e8ef;
  border-radius: 6px;
  background: #eef6f9;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(.is-style-afoc-conseil, .is-style-afoc-information)::before {
  position: absolute;
  top: 16px;
  left: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #fff;
  background: var(--afoc-article-navy);
  content: "i";
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .is-style-afoc-conseil {
  border-color: #fed8d9;
  background: #fff3f3;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .is-style-afoc-conseil::before {
  background: var(--afoc-article-red);
  content: "✓";
  font-family: "Inter", Arial, sans-serif;
  font-size: 18px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(.is-style-afoc-conseil, .is-style-afoc-information) > :first-child {
  margin-top: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) :where(.is-style-afoc-conseil, .is-style-afoc-information) > :last-child {
  margin-bottom: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .is-style-afoc-card {
  width: 100%;
  margin: 20px 0 24px;
  padding: 22px;
  border: 1px solid var(--afoc-article-line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 47, 73, 0.08);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .is-style-afoc-card > :first-child {
  margin-top: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .is-style-afoc-card > :last-child {
  margin-bottom: 0;
}

/* Legacy seeded note kept until every existing article is migrated. */
:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .example-note {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  margin: 18px 0 0;
  padding: 16px 20px;
  border-radius: 6px;
  background: #eef6f9;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .example-note > p {
  min-width: 0;
  margin: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .example-note .line-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  background: var(--afoc-article-navy);
}

/* Checklist and reusable article modules. */
:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .wp-block-list.is-style-afoc-checklist {
  padding-left: 0;
  list-style: none;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .wp-block-list.is-style-afoc-checklist > li {
  position: relative;
  padding-left: 27px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .wp-block-list.is-style-afoc-checklist > li::before {
  position: absolute;
  top: 2px;
  left: 0;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  color: #fff;
  background: var(--afoc-article-red);
  content: "✓";
  font-size: 10px;
  font-weight: 800;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-module--cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin: 28px 0;
  padding: 24px 26px;
  border-radius: 7px;
  color: #fff;
  background: linear-gradient(145deg, #073d5d, #022c46);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-module--cta :where(h2, h3, p) {
  color: #fff;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-module--cta :where(h2, h3) {
  margin-top: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-module--cta > :last-child,
:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-module--cta p:last-child {
  margin-bottom: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .wp-block-buttons {
  gap: 10px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .wp-block-button__link {
  padding: 11px 17px;
  border: 1px solid var(--afoc-article-red);
  border-radius: 5px;
  color: #fff;
  background: var(--afoc-article-red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .wp-block-button.is-style-afoc-outline .wp-block-button__link {
  color: var(--afoc-article-red);
  background: #fff;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-stats {
  gap: 12px;
  margin: 22px 0 26px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-stats > .wp-block-column {
  min-width: 0;
  padding: 20px 16px;
  border: 1px solid var(--afoc-article-line);
  border-radius: 7px;
  background: var(--afoc-article-mist);
  text-align: center;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-stat__value {
  margin: 0 0 4px;
  color: var(--afoc-article-red);
  font-family: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-stat__label {
  margin: 0;
  color: var(--afoc-article-ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.45;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-steps {
  padding-left: 0;
  list-style: none;
  counter-reset: afoc-step;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-steps > li {
  position: relative;
  min-height: 34px;
  padding: 6px 0 6px 46px;
  counter-increment: afoc-step;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-steps > li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #fff;
  background: var(--afoc-article-navy);
  content: counter(afoc-step);
  font-size: 12px;
  font-weight: 800;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-sources {
  margin-top: 28px;
  padding: 18px 20px;
  border-top: 2px solid var(--afoc-article-line);
  color: var(--afoc-article-muted);
  background: var(--afoc-article-mist);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-sources :where(h2, h3) {
  margin-top: 0;
  font-size: 15px;
}

/* Downloadable document cards, used for article attachments. */
:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment {
  display: grid;
  gap: 20px;
  margin: 34px 0 0;
  padding: 24px;
  border: 1px solid var(--afoc-article-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(8, 47, 73, 0.06);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment > :where(h2, h3) {
  margin: 0;
  color: var(--afoc-article-ink);
  font-size: 18px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__layout {
  display: grid;
  grid-template-columns: minmax(150px, 192px) minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__preview {
  margin: 0;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__preview img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--afoc-article-line);
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(8, 47, 73, 0.12);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__copy :where(h3, h4) {
  margin: 0 0 8px;
  color: var(--afoc-article-ink);
  font-size: 19px;
  line-height: 1.18;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__copy > p {
  margin: 0 0 10px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__meta {
  color: var(--afoc-article-muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__action {
  margin-top: 18px !important;
  margin-bottom: 0 !important;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__action a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: 5px;
  color: #fff;
  background: var(--afoc-article-red);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__action a:hover,
:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-article-attachment__action a:focus-visible {
  color: #fff;
  background: #bd2927;
}

/* Native Details blocks and the two-column FAQ pattern. */
:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) details.wp-block-details {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid var(--afoc-article-line);
  background: #fff;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) details.wp-block-details:first-child {
  border-top: 1px solid var(--afoc-article-line);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) details.wp-block-details summary {
  position: relative;
  padding: 15px 38px 15px 0;
  color: var(--afoc-article-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) details.wp-block-details summary::-webkit-details-marker {
  display: none;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) details.wp-block-details summary::after {
  position: absolute;
  top: 50%;
  right: 6px;
  color: var(--afoc-article-red);
  content: "+";
  font-size: 20px;
  line-height: 1;
  transform: translateY(-50%);
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) details.wp-block-details[open] summary::after {
  content: "−";
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) details.wp-block-details > :not(summary) {
  margin-right: 38px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) details.wp-block-details > :last-child {
  margin-bottom: 16px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-faq-pattern {
  width: 100%;
  gap: 28px;
  align-items: flex-start;
  margin-bottom: 28px;
}

:where(
  .article-prose,
  body.post-type-post.editor-styles-wrapper .is-root-container,
  body.post-type-post .editor-styles-wrapper .is-root-container
) .afoc-faq-pattern > .wp-block-column {
  width: 100%;
}

@media (max-width: 640px) {
  :where(
    .article-prose,
    body.post-type-post.editor-styles-wrapper .is-root-container,
    body.post-type-post .editor-styles-wrapper .is-root-container
  ) :where(.is-style-afoc-conseil, .is-style-afoc-information) {
    padding: 72px 18px 18px;
  }

  :where(
    .article-prose,
    body.post-type-post.editor-styles-wrapper .is-root-container,
    body.post-type-post .editor-styles-wrapper .is-root-container
  ) :where(.is-style-afoc-conseil, .is-style-afoc-information)::before {
    top: 16px;
    left: 18px;
    width: 40px;
    height: 40px;
  }

  :where(
    .article-prose,
    body.post-type-post.editor-styles-wrapper .is-root-container,
    body.post-type-post .editor-styles-wrapper .is-root-container
  ) .afoc-module--cta {
    display: block;
    padding: 22px 20px;
  }

  :where(
    .article-prose,
    body.post-type-post.editor-styles-wrapper .is-root-container,
    body.post-type-post .editor-styles-wrapper .is-root-container
  ) .afoc-module--cta .wp-block-buttons {
    margin-top: 18px;
  }

  :where(
    .article-prose,
    body.post-type-post.editor-styles-wrapper .is-root-container,
    body.post-type-post .editor-styles-wrapper .is-root-container
  ) .afoc-stats {
    flex-direction: column;
  }

  :where(
    .article-prose,
    body.post-type-post.editor-styles-wrapper .is-root-container,
    body.post-type-post .editor-styles-wrapper .is-root-container
  ) .afoc-article-attachment {
    padding: 20px;
  }

  :where(
    .article-prose,
    body.post-type-post.editor-styles-wrapper .is-root-container,
    body.post-type-post .editor-styles-wrapper .is-root-container
  ) .afoc-article-attachment__layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  :where(
    .article-prose,
    body.post-type-post.editor-styles-wrapper .is-root-container,
    body.post-type-post .editor-styles-wrapper .is-root-container
  ) .afoc-article-attachment__preview {
    width: min(192px, 100%);
  }
}
