/* มรดกธรรมหลวงพ่อ — article layout for DT_DATA pages
   Typography roles (7 fonts, each with a distinct job):
   - Kanit: page H1 title only
   - Mitr: lesson-code eyebrow badge
   - Prompt: back-links, buttons, step-number badges (UI chrome)
   - Noto Sans Thai: base body paragraph text (dense long-form reading)
   - Athiti: section card headings (h3-level, inside the article)
   - Anuphan: lead/intro paragraph + closing attribution text
   - IBM Plex Sans Thai: Q&A bubbles + key-definition highlight chips
*/

.dt-article {
  max-width: 780px;
  margin: 0 auto;
  padding: 8px 20px 56px;
}

.dt-lesson-badge {
  display: inline-block;
  font-family: 'Mitr', sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.5px;
  color: #ffffff;
  background: var(--accent, #b08d3e);
  border-radius: 999px;
  padding: 6px 16px;
  margin: 0 0 18px;
}

.dt-intro {
  font-family: 'Anuphan', sans-serif;
  font-size: 20px;
  line-height: 1.9;
  color: var(--brand, #35472e);
  background: var(--panel-bg, #ece8d8);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 0 0 28px;
}

/* ---- section card ---- */

.dt-section {
  border-radius: 16px;
  padding: 22px 24px;
  margin: 0 0 20px;
  border-left: 6px solid;
}

.dt-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
}

.dt-section-icon {
  font-size: 26px;
  flex-shrink: 0;
  line-height: 1;
}

.dt-section-heading {
  font-family: 'Athiti', sans-serif;
  font-weight: 600;
  font-size: 21px;
  line-height: 1.4;
  color: #2c2c22;
  margin: 0;
}

.dt-section p {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 19px;
  line-height: 2.05;
  color: #3a3a30;
  margin: 0 0 14px;
}
.dt-section p:last-child { margin-bottom: 0; }

/* rotating warm palette */
.dt-section.c0 { background: #fdf6e6; border-color: #d9b76a; }
.dt-section.c1 { background: #eef4ea; border-color: #9ab887; }
.dt-section.c2 { background: #fbeee6; border-color: #d99a72; }
.dt-section.c3 { background: #eaf1f4; border-color: #86adbd; }
.dt-section.c4 { background: #f7ecf0; border-color: #c98ea3; }

/* ---- divider heading (icon+heading with no body, acts as a sub-section title) ---- */

.dt-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 18px;
}
.dt-divider .dt-section-icon { font-size: 24px; }
.dt-divider h3 {
  font-family: 'Athiti', sans-serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--brand, #35472e);
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 2px dashed #ddd6bd;
  flex: 1;
}

/* ---- key definition chip ("X = Y") ---- */

.dt-definition {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-weight: 500;
  font-size: 19px;
  color: var(--brand-dark, #26361f);
  background: #fff;
  border: 1.5px dashed var(--accent, #b08d3e);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 20px;
}
.dt-definition .dt-section-icon { font-size: 22px; }

/* ---- numbered step card ---- */

.dt-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 24px;
}

.dt-step {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--card-border, #e6e2d0);
  border-radius: 14px;
  padding: 18px 20px;
}

.dt-step-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--brand, #35472e);
  color: #fff;
  font-family: 'Prompt', sans-serif;
  font-weight: 600;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dt-step-body h4 {
  font-family: 'Athiti', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--brand, #35472e);
  margin: 2px 0 8px;
}

.dt-step-body p {
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 18px;
  line-height: 1.9;
  color: #3a3a30;
  margin: 0 0 8px;
}
.dt-step-body p:last-child { margin-bottom: 0; }

/* ---- Q&A bubbles ---- */

.dt-qa-block { margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }

.dt-qa-bubble {
  font-family: 'IBM Plex Sans Thai', sans-serif;
  font-size: 18px;
  line-height: 1.85;
  border-radius: 16px;
  padding: 16px 20px;
  max-width: 92%;
}

.dt-qa-q {
  align-self: flex-start;
  background: #fdf6e6;
  border: 1px solid #e8cf8a;
  color: #6b5010;
  border-bottom-left-radius: 4px;
}
.dt-qa-q .dt-qa-label { font-weight: 700; margin-right: 6px; }

.dt-qa-a {
  align-self: flex-end;
  background: #eef4ea;
  border: 1px solid #b9d1a6;
  color: #2b3d1f;
  border-bottom-right-radius: 4px;
}
.dt-qa-a .dt-qa-label { font-weight: 700; margin-right: 6px; }

/* ---- closing attribution ---- */

.dt-closing {
  font-family: 'Anuphan', sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--muted, #8a8a76);
  font-style: italic;
  text-align: center;
  border-top: 1px solid var(--card-border, #e6e2d0);
  margin-top: 32px;
  padding-top: 24px;
}

@media (max-width: 600px) {
  .dt-section { padding: 18px 18px; }
  .dt-section-heading { font-size: 19px; }
  .dt-section p, .dt-step-body p { font-size: 18px; }
  .dt-qa-bubble { max-width: 100%; }
}

/* ---- subheading + list (long-form articles with numbered subsections) ---- */

.dt-subheading {
  font-family: 'Athiti', sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: inherit;
  opacity: 0.92;
  margin: 20px 0 10px;
}
.dt-section .dt-subheading:first-child { margin-top: 0; }

.dt-list {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dt-list li {
  display: flex;
  gap: 10px;
  font-family: 'Noto Sans Thai', sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
.dt-list li::before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
  margin-top: 9px;
}
