/* 阅读主线：课程、每日知识、实践任务与论文保持单列，正文颜色与字号一致。 */
#dialog-content > article.dialog-body:has(.reading-section),
#dialog-content > article.lab-body {
  box-sizing: border-box;
  width: 100%;
  max-width: 744px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
  color: #303a36;
}
#dialog-content > article.dialog-body:has(.reading-section) :is(.reading-section p, .worked-example p, .practice-box p, .detail-note, .learning-muted),
#dialog-content > article.lab-body :is(p, li, label, .detail-note) {
  color: #303a36;
  font-size: 16px;
  line-height: 1.6;
}
#dialog-content .reading-section h3 { color: #263b33; line-height: 1.5; }
#dialog-content .reading-section { max-width: 680px; }

/* 外层卡片带有内边距，因此正文实际行宽小于 680px。长公式、表格和代码在自身区域滚动。 */
.paper-unit {
  box-sizing: border-box;
  width: 100%;
  max-width: 680px;
  margin-inline: auto;
  color: #303a36;
  font-size: 16px;
  line-height: 1.6;
}
.paper-abstract ul,
.paper-prerequisites { display: grid; grid-template-columns: minmax(0, 1fr); }
.paper-unit :is(.paper-abstract p, .paper-abstract li, .paper-column-body p,
  .paper-column-body li, .paper-constraints > p, .paper-sources p) {
  color: #303a36;
  font-size: 16px;
  line-height: 1.6;
}
.paper-unit .paper-column-body .paper-takeaway { color: #303a36 !important; font-size: 16px !important; }
.paper-unit .paper-abstract .paper-small,
.paper-unit .paper-sources .paper-small { color: #303a36; font-size: 16px !important; line-height: 1.6 !important; }
.paper-table-wrap, .paper-code, .paper-formula { max-width: 100%; overflow: auto; }
.paper-unit .paper-table { color: #303a36; font-size: 16px; line-height: 1.6; }
.paper-unit .paper-table :is(th, td) { color: #303a36; }

/* 切换到文章时正文直接可见，不对包含正文的祖先做整页入场动画。 */
.page-enter:has(.paper-unit) { animation: none; }
#dialog-content:has(.reading-section),
#dialog-content:has(.lab-body),
.paper-unit, .paper-unit :is(p, li),
#dialog-content .reading-section p { animation: none; }

/* 阅读提示块采用柔和的静态边线，提示图标独立于正文，不覆盖文字。 */
#dialog-content :is(.worked-example, .practice-box, .detail-note),
.paper-unit :is(.paper-note, .paper-takeaway) {
  border-left: 3px solid #80a887;
  border-radius: 10px;
}
#dialog-content :is(.worked-example, .practice-box), .paper-unit .paper-note {
  background-color: #f2f7ef;
}
#dialog-content .reading-section h3 { letter-spacing: 0; }
