/**
 * DMEB Posts — article content typography.
 *
 * Styles standard post HTML (headings, paragraphs, lists, quotes, tables) so a
 * non-technical editor never has to write markup. Everything hangs off an
 * article wrapper class — see the README for the ways that wrapper is applied.
 *
 * Palette is deliberately restrained: navy headings, softened navy body copy,
 * gold as the single editorial accent. Teal is reserved for functional
 * elements (links, buttons), matching the rest of the site.
 *
 * Selector specificity is kept low via :where() so a theme or Elementor can
 * override any single rule without fighting this file.
 *
 * @package DMEB_Posts
 */

/* ------------------------------------------------------------------ *
 * Tokens
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article {
  --dmeb-article-heading: #0f2a3b;
  --dmeb-article-body: #243d4d;
  --dmeb-article-gold: #b8934a;
  --dmeb-article-list-tint: rgba(0, 0, 0, 0.1);
  --dmeb-article-list-border: rgba(0, 0, 0, 0.1);
  --dmeb-article-quiet: #55636e;
  --dmeb-article-link: #1c7c74;
  --dmeb-article-rule: rgba(15, 42, 59, 0.1);
  --dmeb-article-size: 18px;
  --dmeb-article-leading: 1.55;
  --dmeb-article-gap: 22px;
  --dmeb-article-heading-size: 30px;
  --dmeb-article-heading-top: 48px;
  --dmeb-article-title-rule-gap: 12px;
  --dmeb-article-title-rule-gap-sm: 9px;
  --dmeb-article-title-rule-w: 46px;
  --dmeb-article-title-rule-w-sm: 36px;
  --dmeb-article-title-rule-w-xs: 28px;
  --dmeb-article-title-space: 30px;
  --dmeb-article-title-space-sm: 22px;
  --dmeb-article-lead-weight: 500;
  --dmeb-article-list-weight: 500;
  --dmeb-article-list-size: 17px;
  --dmeb-article-list-radius: 14px;
  --dmeb-article-list-pad-y: 20px;
  --dmeb-article-list-pad-x: 24px;
  --dmeb-article-marker-size: 34px;
  --dmeb-article-ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* No background of its own — the article sits directly on the page. */
  background: none;
  color: var(--dmeb-article-body);
  font-size: var(--dmeb-article-size);
  line-height: var(--dmeb-article-leading);
  text-align: left;
}

/* ------------------------------------------------------------------ *
 * Flow rhythm
 *
 * One consistent vertical rhythm matters more here than any single font
 * size: paragraphs 22px apart, generous air above a new section.
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(p, ul, ol, dl, blockquote, figure, table, pre, hr) {
  margin: 0 0 var(--dmeb-article-gap);
}

body.dmeb-article-page .dmeb-article :where(p, li, dd, blockquote, figcaption, td, th) {
  color: var(--dmeb-article-body);
}

body.dmeb-article-page .dmeb-article :where(p) {
  font-size: var(--dmeb-article-size);
  font-weight: 400;
  line-height: var(--dmeb-article-leading);
}

/* Keep the measure readable (~65–80 characters) without constraining the
   surrounding Elementor column. */
body.dmeb-article-page .dmeb-article :where(p, blockquote) {
  max-width: 72ch;
}

body.dmeb-article-page .dmeb-article > :where(*:first-child) {
  margin-top: 0;
}

body.dmeb-article-page .dmeb-article > :where(*:last-child) {
  margin-bottom: 0;
}

/* ------------------------------------------------------------------ *
 * Headings
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(h2, h3, h4, h5, h6) {
  color: var(--dmeb-article-heading);
  font-weight: 700;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* The gold rule is generated so editors never add it by hand. */
body.dmeb-article-page .dmeb-article :where(h2) {
  font-size: var(--dmeb-article-heading-size);
  line-height: 1.18;
  letter-spacing: -0.01em;

  /* No bottom margin on the heading itself: the generated rule is the last
     thing in the box, so the spacing below the rule belongs to the rule. That
     is what offsets the following paragraph from the underline. */
  margin: var(--dmeb-article-heading-top) 0 0;
}

body.dmeb-article-page .dmeb-article :where(h2)::after {
  content: "";
  display: block;
  width: var(--dmeb-article-title-rule-w);
  height: 4px;
  margin-top: var(--dmeb-article-title-rule-gap);
  margin-bottom: var(--dmeb-article-title-space);
  background: var(--dmeb-article-gold);
  border-radius: 2px;
}

/* A leading heading should not push the intro down. */
body.dmeb-article-page .dmeb-article > :where(h2:first-child) {
  margin-top: 0;
}

body.dmeb-article-page .dmeb-article :where(h3) {
  font-size: 23px;
  line-height: 1.25;
  margin: 38px 0 14px;
}

body.dmeb-article-page .dmeb-article :where(h4) {
  font-size: 20px;
  line-height: 1.3;
  margin: 30px 0 12px;
}

body.dmeb-article-page .dmeb-article :where(h5, h6) {
  font-size: 17px;
  line-height: 1.35;
  margin: 26px 0 10px;
  letter-spacing: 0.01em;
}

/* ================================================================== *
 * EDITORIAL OVERRIDES
 *
 * Three things an editor notices before anything else, and all three have to
 * survive theme and Elementor post-content typography. A builder rule such as
 * `.elementor-widget-theme-post-content .elementor-widget-container h3` scores
 * (0,2,1) and, being emitted after this file, beats the deliberately
 * low-specificity `:where()` rules above on a tie — which is why the title
 * colour and the gold underline can go missing on a themed single post.
 *
 * The doubled `.dmeb-article` class lifts these three rules to (0,3,2) without
 * reaching for `!important`, so a theme can still take over with a stronger
 * selector of its own.
 * ================================================================== */

/* Section titles use the same navy as the Related articles heading. */
body.dmeb-article-page .dmeb-article.dmeb-article :is(h2, h3, h4, h5, h6) {
  color: var(--dmeb-article-heading);
}

/* The short gold rule runs under every section title (h2, h3, h4), scaled to
   the type size. The bar sits a fixed distance under the last line, and the
   space beneath the rule belongs to the rule so the next paragraph is offset
   from the underline rather than butted against it. */
body.dmeb-article-page .dmeb-article.dmeb-article :is(h3, h4)::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: var(--dmeb-article-title-rule-gap-sm);
  margin-bottom: var(--dmeb-article-title-space-sm);
  background: var(--dmeb-article-gold);
  border-radius: 2px;
}

/* The heading itself carries no bottom margin, so the rule owns the gap. */
body.dmeb-article-page .dmeb-article.dmeb-article :is(h3, h4) {
  margin-bottom: 0;
}

body.dmeb-article-page .dmeb-article.dmeb-article h3::after {
  width: var(--dmeb-article-title-rule-w-sm);
}

body.dmeb-article-page .dmeb-article.dmeb-article h4::after {
  width: var(--dmeb-article-title-rule-w-xs);
}

/* The opening paragraph reads as a standfirst — medium, never bold. The
   `:first-of-type` is scoped to direct children so a paragraph nested inside
   a block (a figure caption, a list) can never be lifted by accident. */
body.dmeb-article-page .dmeb-article.dmeb-article > p:first-of-type {
  font-weight: var(--dmeb-article-lead-weight);
}

/* ------------------------------------------------------------------ *
 * Links, emphasis
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(a) {
  color: var(--dmeb-article-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 240ms var(--dmeb-article-ease);
}

body.dmeb-article-page .dmeb-article :where(a):hover,
body.dmeb-article-page .dmeb-article :where(a):focus {
  color: var(--dmeb-article-heading);
}

body.dmeb-article-page .dmeb-article :where(strong, b) {
  color: var(--dmeb-article-heading);
  font-weight: 700;
}

body.dmeb-article-page .dmeb-article :where(em, i) {
  font-style: italic;
}

body.dmeb-article-page .dmeb-article :where(small) {
  font-size: 0.88em;
  color: var(--dmeb-article-quiet);
}

body.dmeb-article-page .dmeb-article :where(mark) {
  background: rgba(184, 147, 74, 0.22);
  color: var(--dmeb-article-heading);
  padding: 0 3px;
  border-radius: 3px;
}

/* ------------------------------------------------------------------ *
 * Images and media
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(img, video, iframe) {
  max-width: 100%;
  height: auto;
}

body.dmeb-article-page .dmeb-article :where(img) {
  border-radius: 10px;
}

body.dmeb-article-page .dmeb-article :where(figure) {
  margin: 30px 0;
}

body.dmeb-article-page .dmeb-article :where(figure) :where(img) {
  display: block;
  width: 100%;
}

body.dmeb-article-page .dmeb-article :where(figcaption) {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--dmeb-article-quiet);
}

/* WordPress block alignment helpers. */
body.dmeb-article-page .dmeb-article :where(.alignleft) {
  float: left;
  margin: 6px 26px 18px 0;
  max-width: 46%;
}

body.dmeb-article-page .dmeb-article :where(.alignright) {
  float: right;
  margin: 6px 0 18px 26px;
  max-width: 46%;
}

body.dmeb-article-page .dmeb-article :where(.aligncenter) {
  margin-left: auto;
  margin-right: auto;
}

body.dmeb-article-page .dmeb-article :where(.alignwide, .alignfull) {
  max-width: 100%;
}

/* ------------------------------------------------------------------ *
 * Blockquote
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(blockquote) {
  margin: 30px 0;
  padding: 4px 0 4px 24px;
  border-left: 4px solid var(--dmeb-article-gold);
  color: var(--dmeb-article-heading);
  font-size: 19px;
  line-height: 1.5;
  font-style: normal;
}

body.dmeb-article-page .dmeb-article :where(blockquote) :where(p) {
  font-size: inherit;
  color: inherit;
}

body.dmeb-article-page .dmeb-article :where(blockquote cite) {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-style: normal;
  color: var(--dmeb-article-quiet);
}

body.dmeb-article-page .dmeb-article :where(blockquote.is-style-large, blockquote.wp-block-quote.is-style-large) {
  font-size: 22px;
}

/* ------------------------------------------------------------------ *
 * Horizontal rule
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(hr) {
  height: 1px;
  border: 0;
  background: var(--dmeb-article-rule);
  margin: 40px 0;
}

/* ================================================================== *
 * LISTS
 *
 * An ordinary, unmodified <ul> or <ol> — exactly what WordPress and
 * Elementor produce from a list block — gets a tinted, rounded container
 * with medium-weight rows. No markers, no classes and no markup required.
 *
 * Modifiers, reachable from a pasted marker or an Elementor "CSS Classes"
 * value, change the marker style:
 *
 *   (default)              tinted container, gold bullets  (<ul>)
 *                          tinted container, gold numbers  (<ol>)
 *   .dmeb-list--plain      tinted container, gold bullets
 *   .dmeb-list--checklist  tinted container, gold tick circles
 *   .dmeb-list--steps      tinted container, gold number circles
 *   .dmeb-list--off        no container, handed back to the theme
 *
 * Nested lists never get their own container — they read as sub-lists.
 * ================================================================== */

body.dmeb-article-page .dmeb-article :where(ul, ol) {
  font-size: var(--dmeb-article-list-size);
  color: var(--dmeb-article-body);
}

body.dmeb-article-page .dmeb-article :where(li) {
  overflow-wrap: break-word;
  font-weight: var(--dmeb-article-list-weight);
}

/* ------------------------------------------------------------------ *
 * The container — shared by every list except --off
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article
  :where(ul:not(.dmeb-list--off), ol:not(.dmeb-list--off)) {
  list-style: none;
  padding: var(--dmeb-article-list-pad-y) var(--dmeb-article-list-pad-x);
  margin: 18px 0 26px;
  background: var(--dmeb-article-list-tint);
  border: 1px solid var(--dmeb-article-list-border);
  border-radius: var(--dmeb-article-list-radius);
}

/* A container should not be jammed against the paragraph below it. */
body.dmeb-article-page .dmeb-article
  :where(ul:not(.dmeb-list--off), ol:not(.dmeb-list--off)) + :where(p) {
  margin-top: 0;
}

/* Nested lists drop the container so they read as a sub-list. */
body.dmeb-article-page .dmeb-article :where(ul, ol) :where(ul, ol) {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 8px 0 0;
  margin: 8px 0 0;
}

/* ------------------------------------------------------------------ *
 * Default / --plain : gold bullets
 *
 * Grid rather than absolute positioning so a wrapped line stays aligned
 * under the text, and so the marker sits correctly inside the container's
 * padding.
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article
  :where(
    ul:not(.dmeb-list--off, .dmeb-list--checklist, .dmeb-list--steps),
    ul.dmeb-list--plain
  )
  > :where(li) {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  column-gap: 14px;
  align-items: start;
  padding: 6px 0;
  margin: 0;
  font-size: var(--dmeb-article-list-size);
  line-height: 1.45;
}

body.dmeb-article-page .dmeb-article
  :where(
    ul:not(.dmeb-list--off, .dmeb-list--checklist, .dmeb-list--steps),
    ul.dmeb-list--plain
  )
  > :where(li)::before {
  content: "";
  grid-column: 1;
  width: 7px;
  height: 7px;
  margin-top: 0.52em;
  border-radius: 50%;
  background: var(--dmeb-article-gold);
}

/* ------------------------------------------------------------------ *
 * Ordered lists : gold numbers, same container
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article
  :where(ol:not(.dmeb-list--off, .dmeb-list--plain, .dmeb-list--checklist, .dmeb-list--steps)) {
  counter-reset: dmeb-step;
}

body.dmeb-article-page .dmeb-article
  :where(ol:not(.dmeb-list--off, .dmeb-list--plain, .dmeb-list--checklist, .dmeb-list--steps))
  > :where(li) {
  counter-increment: dmeb-step;
  display: grid;
  grid-template-columns: var(--dmeb-article-marker-size) minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 7px 0;
  margin: 0;
  font-size: var(--dmeb-article-list-size);
  line-height: 1.45;
}

body.dmeb-article-page .dmeb-article
  :where(ol:not(.dmeb-list--off, .dmeb-list--plain, .dmeb-list--checklist, .dmeb-list--steps))
  > :where(li)::before {
  content: counter(dmeb-step);
  grid-column: 1;
  width: var(--dmeb-article-marker-size);
  height: var(--dmeb-article-marker-size);
  border-radius: 50%;
  background: var(--dmeb-article-gold);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* ------------------------------------------------------------------ *
 * --checklist : gold tick circles
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(.dmeb-list--checklist) > :where(li) {
  display: grid;
  grid-template-columns: var(--dmeb-article-marker-size) minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 7px 0;
  margin: 0;
  font-size: var(--dmeb-article-list-size);
  line-height: 1.45;
}

body.dmeb-article-page .dmeb-article :where(.dmeb-list--checklist) > :where(li)::before {
  content: "";
  grid-column: 1;
  width: var(--dmeb-article-marker-size);
  height: var(--dmeb-article-marker-size);

  /* Filled gold disc with a white tick, drawn as one self-contained SVG.
     Kept as a background instead of a white glyph so the tick colour never
     depends on the container showing through. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23B8934A'/%3E%3Cpath d='M6.4 12.4l3.6 3.6 7.6-8' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: var(--dmeb-article-marker-size) var(--dmeb-article-marker-size);
}

/* ------------------------------------------------------------------ *
 * --steps : numbered treatment on an unordered list
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(ul.dmeb-list--steps) {
  counter-reset: dmeb-step;
}

body.dmeb-article-page .dmeb-article :where(ul.dmeb-list--steps) > :where(li) {
  counter-increment: dmeb-step;
  display: grid;
  grid-template-columns: var(--dmeb-article-marker-size) minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 7px 0;
  margin: 0;
  font-size: var(--dmeb-article-list-size);
  line-height: 1.45;
}

body.dmeb-article-page .dmeb-article :where(ul.dmeb-list--steps) > :where(li)::before {
  content: counter(dmeb-step);
  grid-column: 1;
  width: var(--dmeb-article-marker-size);
  height: var(--dmeb-article-marker-size);
  border-radius: 50%;
  background: var(--dmeb-article-gold);
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 700;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapped lines stay aligned under the text, not under the marker. */
body.dmeb-article-page .dmeb-article
  :where(ol:not(.dmeb-list--off, .dmeb-list--plain, .dmeb-list--checklist, .dmeb-list--steps))
  > :where(li)
  > :where(*),
body.dmeb-article-page .dmeb-article :where(ul.dmeb-list--steps) > :where(li) > :where(*) {
  grid-column: 2;
  min-width: 0;
  margin: 0;
}

/* ------------------------------------------------------------------ *
 * --off : hand the list back to the theme
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(.dmeb-list--off) {
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  margin: 20px 0 26px;
}

body.dmeb-article-page .dmeb-article :where(.dmeb-list--off) > :where(li) {
  display: list-item;
  list-style: revert;
  margin: 0 0 8px;
  padding: 0;
}

body.dmeb-article-page .dmeb-article :where(.dmeb-list--off) > :where(li)::before {
  content: none;
}


/* ------------------------------------------------------------------ *
 * Definition lists
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(dt) {
  color: var(--dmeb-article-heading);
  font-weight: 700;
  margin-top: 18px;
}

body.dmeb-article-page .dmeb-article :where(dd) {
  margin: 4px 0 0;
  padding-left: 18px;
  border-left: 2px solid var(--dmeb-article-rule);
}

/* ------------------------------------------------------------------ *
 * Tables
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(table) {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
}

body.dmeb-article-page .dmeb-article :where(th, td) {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--dmeb-article-rule);
}

body.dmeb-article-page .dmeb-article :where(th) {
  color: var(--dmeb-article-heading);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  border-bottom-width: 2px;
}

body.dmeb-article-page .dmeb-article :where(tbody) :where(tr):hover {
  background: rgba(15, 42, 59, 0.025);
}

/* Let wide tables scroll instead of breaking the layout. */
body.dmeb-article-page .dmeb-article :where(.wp-block-table) {
  overflow-x: auto;
}

/* ------------------------------------------------------------------ *
 * Code
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(code, kbd, samp) {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(15, 42, 59, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--dmeb-article-heading);
}

body.dmeb-article-page .dmeb-article :where(pre) {
  overflow-x: auto;
  padding: 18px 20px;
  background: var(--dmeb-article-heading);
  border-radius: 10px;
  color: #e8eef1;
  font-size: 14.5px;
  line-height: 1.6;
}

body.dmeb-article-page .dmeb-article :where(pre) :where(code) {
  background: none;
  padding: 0;
  color: inherit;
}

/* ------------------------------------------------------------------ *
 * WordPress blocks and captions
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(.wp-caption-text, .wp-element-caption) {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--dmeb-article-quiet);
}

body.dmeb-article-page .dmeb-article :where(.wp-block-separator) {
  border: 0;
  border-top: 1px solid var(--dmeb-article-rule);
  margin: 40px auto;
  max-width: 100%;
}

body.dmeb-article-page .dmeb-article :where(.wp-block-separator.is-style-dots) {
  border: 0;
}

body.dmeb-article-page .dmeb-article :where(.wp-block-button__link) {
  background: var(--dmeb-article-heading);
  color: #fff;
  border-radius: 12px;
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 300ms var(--dmeb-article-ease);
}

body.dmeb-article-page .dmeb-article :where(.wp-block-button__link):hover {
  background: var(--dmeb-article-link);
  color: #fff;
}

/* ------------------------------------------------------------------ *
 * Narrow viewports
 * ------------------------------------------------------------------ */

@media (max-width: 767px) {
  body.dmeb-article-page .dmeb-article {
    --dmeb-article-size: 17px;
    --dmeb-article-heading-size: 25px;
    --dmeb-article-heading-top: 38px;
    --dmeb-article-gap: 20px;
    --dmeb-article-list-size: 16px;
    --dmeb-article-title-space: 24px;
    --dmeb-article-list-radius: 12px;
    --dmeb-article-list-pad-y: 16px;
    --dmeb-article-list-pad-x: 18px;
    --dmeb-article-marker-size: 30px;
  }

  body.dmeb-article-page .dmeb-article :where(h3) {
    font-size: 20px;
    margin-top: 30px;
  }

  body.dmeb-article-page .dmeb-article :where(h4) {
    font-size: 18px;
    margin-top: 26px;
  }

  body.dmeb-article-page .dmeb-article :where(.dmeb-list--checklist) {
    padding: var(--dmeb-article-list-pad-y) var(--dmeb-article-list-pad-x);
    margin: 16px 0 22px;
  }

  body.dmeb-article-page .dmeb-article :where(.dmeb-list--checklist) > :where(li) {
    column-gap: 14px;
    padding: 8px 0;
    align-items: start;
  }

  body.dmeb-article-page .dmeb-article :where(.dmeb-list--checklist) > :where(li)::before {
    margin-top: 1px;
  }

  body.dmeb-article-page .dmeb-article
    :where(ol:not(.dmeb-list--off, .dmeb-list--plain, .dmeb-list--checklist))
    > :where(li),
  body.dmeb-article-page .dmeb-article :where(ul.dmeb-list--steps) > :where(li) {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 14px;
    margin-bottom: 16px;
  }

  body.dmeb-article-page .dmeb-article
    :where(ol:not(.dmeb-list--off, .dmeb-list--plain, .dmeb-list--checklist))
    > :where(li)::before,
  body.dmeb-article-page .dmeb-article :where(ul.dmeb-list--steps) > :where(li)::before {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }

  body.dmeb-article-page .dmeb-article :where(blockquote) {
    padding-left: 18px;
    font-size: 17px;
  }

  body.dmeb-article-page .dmeb-article :where(table) {
    font-size: 15px;
  }

  body.dmeb-article-page .dmeb-article :where(th, td) {
    padding: 10px;
  }
}

/* ------------------------------------------------------------------ *
 * Long words and preformatted content must not break the column.
 * ------------------------------------------------------------------ */

body.dmeb-article-page .dmeb-article :where(p, li, h2, h3, h4, blockquote, dd) {
  overflow-wrap: break-word;
}

/* ------------------------------------------------------------------ *
 * Print
 * ------------------------------------------------------------------ */

@media print {
  body.dmeb-article-page .dmeb-article {
    max-width: none;
    font-size: 11pt;
  }

  body.dmeb-article-page .dmeb-article :where(.dmeb-list--checklist) {
    background: none;
    border: 1px solid #cccccc;
  }

  body.dmeb-article-page .dmeb-article :where(a) {
    color: inherit;
    text-decoration: underline;
  }
}
