/*
 * DDQX Typography Accordion Repair v0.2.0 - editorial article surface.
 * Intent: remove the redundant inset reading card and center-biased text layout.
 * This asset is enqueued ONLY for normal editorial post singles.
 * It does not choose foreground/background colors or affect QOTD/COTW.
 */

/* Clear redundant card treatments on the article and its content wrapper. */
body.ddqx-editorial-article .site-main > article.type-post,
body.ddqx-editorial-article article.ast-article-single,
body.ddqx-editorial-article article.type-post .entry-content {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Use the site layout's existing column rather than a second inset panel. */
body.ddqx-editorial-article .site-main > article.type-post,
body.ddqx-editorial-article article.ast-article-single {
  padding-inline: 0 !important;
}
body.ddqx-editorial-article article.type-post .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin-inline: 0 !important;
  padding-inline: 0 !important;
}

/* Prose, section headings, and lists share one left reading edge. */
body.ddqx-editorial-article article.type-post .entry-content > :is(p, h2, h3, h4, h5, h6, ul, ol) {
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
}

/* Limit line length without re-centering it inside another panel. */
body.ddqx-editorial-article article.type-post .entry-content > :is(p, ul, ol) {
  box-sizing: border-box;
  width: 100%;
  max-width: min(100%, 78ch) !important;
  overflow-wrap: break-word;
}

/* Preserve article list indentation and numbering. Do not change type size. */
body.ddqx-editorial-article article.type-post .entry-content > :is(ul, ol) {
  padding-inline-start: 1.6em;
}
