/*
 * DDQX Typography Accordion Repair v0.1.0
 * Confirmed pilot: White Coat Journey stage pages only.
 * Works in light, dark, and study modes without specifying colors.
 * Does not affect navigation, ordinary article lists, MCAT lessons, or CPR.
 */

/* Normalize the small accordion copy and oversized list text together. */
body .ddqx-stage-page details.ddqx-journey-detail > summary,
body .ddqx-stage-page details.ddqx-journey-detail > p,
body .ddqx-stage-page details.ddqx-journey-detail > ul.wp-block-list,
body .ddqx-stage-page details.ddqx-journey-detail > ol.wp-block-list,
body .ddqx-stage-page details.ddqx-journey-detail > ul.wp-block-list > li,
body .ddqx-stage-page details.ddqx-journey-detail > ol.wp-block-list > li {
  font-size: 1rem !important;
  line-height: 1.6 !important;
  overflow-wrap: break-word;
}

/* Keep list bullets/numbers within the reading surface, not under its edge. */
body .ddqx-stage-page details.ddqx-journey-detail > ul.wp-block-list,
body .ddqx-stage-page details.ddqx-journey-detail > ol.wp-block-list {
  box-sizing: border-box;
  max-width: 100%;
  margin-block: 0.65rem 1rem !important;
  padding-inline-start: 1.5rem !important;
  list-style-position: outside !important;
}
body .ddqx-stage-page details.ddqx-journey-detail > ul.wp-block-list {
  list-style-type: disc !important;
}
body .ddqx-stage-page details.ddqx-journey-detail > ol.wp-block-list {
  list-style-type: decimal !important;
}

/* Repair global list-item font rules and any display reset on these lists. */
body .ddqx-stage-page details.ddqx-journey-detail > ul.wp-block-list > li,
body .ddqx-stage-page details.ddqx-journey-detail > ol.wp-block-list > li {
  display: list-item !important;
  margin: 0 0 0.38em !important;
  padding: 0 !important;
  font-family: inherit !important;
  font-weight: inherit;
  list-style-position: outside !important;
}
body .ddqx-stage-page details.ddqx-journey-detail > ul.wp-block-list > li {
  list-style-type: disc !important;
}
body .ddqx-stage-page details.ddqx-journey-detail > ol.wp-block-list > li {
  list-style-type: decimal !important;
}
body .ddqx-stage-page details.ddqx-journey-detail > ul.wp-block-list > li > a,
body .ddqx-stage-page details.ddqx-journey-detail > ol.wp-block-list > li > a {
  font-size: inherit !important;
}

@media (max-width: 480px) {
  body .ddqx-stage-page details.ddqx-journey-detail > ul.wp-block-list,
  body .ddqx-stage-page details.ddqx-journey-detail > ol.wp-block-list {
    padding-inline-start: 1.35rem !important;
  }
}
