/* ĐIỂM TỰA ĐỜI CON — giao diện màn học trong app. Tông kem/rêu/vàng kim. */

#s-diemtua, #s-diemtua-lesson { padding-bottom: 178px; }

/* ---- Hero đầu màn ---- */
.dt-hero { padding: 4px 2px 6px; }
.dt-title {
  font-family: "Cormorant Garamond", Cormorant, Georgia, serif;
  font-size: 34px; font-weight: 600; line-height: 1.1;
  color: var(--xanh-reu, #5A7044); margin: 2px 0 6px;
}
.dt-lead { font-size: 15px; line-height: 1.6; color: var(--nau-dat, #3D2F23); margin: 0 0 14px; }
.dt-lead b { color: #9A6E32; }

/* Thanh tiến độ */
.dt-prog { margin: 4px 0 10px; }
.dt-prog-bar { height: 8px; border-radius: 999px; background: #EAE2CF; overflow: hidden; }
.dt-prog-bar span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, #E0B048, #B8902E); transition: width .5s cubic-bezier(.16,1,.3,1); }
.dt-prog-tx { font-size: 12.5px; color: #8A7B63; margin-top: 5px; letter-spacing: .2px; }

/* ---- Thẻ audio thiền ---- */
.dt-med {
  margin: 12px 0 18px; padding: 16px 16px 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(155deg, #5A7044, #3C4E2E);
  box-shadow: 0 18px 34px -18px rgba(60,78,46,.7);
}
.dt-med-h { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.dt-med-s { font-size: 13px; opacity: .9; margin: 5px 0 11px; line-height: 1.5; }
.dt-audio { width: 100%; height: 40px; border-radius: 10px; }

/* ---- Nhóm bài + hàng bài ---- */
.dt-group { margin-top: 8px; }
.dt-group-sub { font-size: 13px; color: #8A7B63; font-style: italic; margin: -4px 0 12px; }

.dt-row {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  background: var(--trang-nga, #fff); border: 1px solid #EDE4D2; border-radius: 15px;
  padding: 13px 13px; margin-bottom: 9px; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease, border-color .18s ease;
}
.dt-row:hover { transform: translateY(-1px); box-shadow: 0 12px 22px -16px rgba(90,112,68,.5); border-color: #DEcFA8; }
.dt-row:active { transform: translateY(0) scale(.995); }
.dt-num {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 14px;
  color: #9A6E32; background: #F4EAD2;
}
.dt-row.done .dt-num { color: #fff; background: linear-gradient(150deg, #7DA063, #5A7044); }
.dt-row-main { flex: 1; min-width: 0; }
.dt-row-name { display: block; font-weight: 700; font-size: 15.5px; color: var(--nau-dat, #3D2F23); }
.dt-row-en { font-weight: 500; font-size: 12px; color: #B29A6E; font-style: italic; }
.dt-row-sub { display: block; font-size: 12.5px; color: #7C6E58; line-height: 1.45; margin-top: 2px; }
.dt-row-go { flex: 0 0 auto; font-size: 22px; color: #C9B48A; line-height: 1; }

/* ---- Màn giới thiệu khi CHƯA có quyền ---- */
.dt-lock { text-align: center; padding: 22px 18px 8px; }
.dt-lock-mark { width: 62px; height: 62px; margin: 6px auto 12px; border-radius: 50%;
  display: grid; place-items: center; background: #F4EAD2; }
.dt-lock-t { font-family: "Cormorant Garamond", Cormorant, Georgia, serif;
  font-size: 28px; font-weight: 600; color: var(--xanh-reu, #5A7044); }
.dt-lock-p { font-size: 15px; line-height: 1.65; color: var(--nau-dat, #3D2F23); margin: 12px 4px; text-align: left; }
.dt-lock-note { font-size: 13px; color: #8A7B63; background: #F6F0E2; border-radius: 12px;
  padding: 11px 13px; margin: 14px 0; line-height: 1.55; }
.dt-cta { display: block; text-decoration: none; text-align: center; font-weight: 700; font-size: 16px;
  color: #fff; background: linear-gradient(150deg, #C9A44E, #B8902E); padding: 15px; border-radius: 14px;
  box-shadow: 0 16px 30px -12px rgba(184,144,46,.7); }

/* ---- Chi tiết bài ---- */
.dt-les-head { padding: 4px 2px 4px; }
.dt-les-tag { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #B8902E; }
.dt-les-name { font-family: "Cormorant Garamond", Cormorant, Georgia, serif;
  font-size: 30px; font-weight: 600; line-height: 1.12; color: var(--xanh-reu, #5A7044); margin: 3px 0 4px; }
.dt-les-en { font-size: 16px; font-style: italic; color: #B29A6E; font-family: Georgia, serif; }
.dt-les-sub { font-size: 15px; font-style: italic; color: #7C6E58; line-height: 1.5; }
.dt-les-body { margin: 14px 0; }
.dt-les-body p { font-size: 16px; line-height: 1.72; color: var(--nau-dat, #3D2F23); margin: 0 0 13px; }
.dt-les-body em { font-style: italic; color: #6E5A3A; }

.dt-slot { font-size: 12.5px; color: #8A7B63; background: #F6F0E2; border: 1px dashed #DDCEA8;
  border-radius: 12px; padding: 11px 13px; margin: 4px 0 16px; line-height: 1.5; }

/* Trình phát audio trong bài học */
.dt-lesson-audio { margin: 12px 0 16px; padding: 14px 15px; border-radius: 15px;
  background: linear-gradient(150deg, #F3EBF0, #EADCE6); border-left: 4px solid #7A4E63; }
.dt-la-h { font-size: 13px; font-weight: 700; color: #6E4B63; margin-bottom: 8px; }

/* Thẻ bài tổng kết Di Sản */
.dt-summary { padding: 16px 16px 18px; border-radius: 18px;
  background: linear-gradient(150deg, #FBF3DF, #F3E7C9); box-shadow: 0 16px 30px -18px rgba(184,144,46,.5); }
.dt-sum-h { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: #9A6E32; }
.dt-sum-sub { font-size: 12.5px; color: #A08657; margin: 4px 0 10px; }
.dt-sum-body { font-family: "Cormorant Garamond", Cormorant, Georgia, serif; font-size: 18px; font-style: italic;
  line-height: 1.5; color: #5A4A2E; margin: 0 0 12px; }

/* Thẻ thiền chữa lành cuối lớp */
.dt-heal { padding: 16px 16px 18px; border-radius: 18px; color: #fff;
  background: linear-gradient(155deg, #5A7044, #3C4E2E); box-shadow: 0 18px 34px -18px rgba(60,78,46,.7); }
.dt-heal-body { font-size: 14px; line-height: 1.6; opacity: .95; margin: 8px 0 12px; }

.dt-soi em { font-style: italic; color: #6E5A3A; }
.dt-note-lbl { font-size: 12.5px; color: #8A7B63; margin: 10px 0 6px; line-height: 1.5; }
.dt-note { width: 100%; min-height: 84px; resize: vertical; border: 1px solid #E4D9BF; border-radius: 12px;
  padding: 11px 12px; font: inherit; font-size: 15px; color: var(--nau-dat, #3D2F23); background: #FFFDF8; }
.dt-note:focus { outline: none; border-color: #C9A44E; box-shadow: 0 0 0 3px rgba(201,164,78,.18); }

.dt-nhac { margin: 16px 0; padding: 16px 16px; border-radius: 16px; border-left: 4px solid #E0B048;
  background: linear-gradient(150deg, #FBF3DF, #F6ECD2); }
.dt-nhac-lbl { font-size: 12.5px; font-weight: 700; color: #9A6E32; letter-spacing: .3px; }
.dt-nhac p { font-family: "Cormorant Garamond", Cormorant, Georgia, serif; font-size: 21px; line-height: 1.4;
  color: #5A4A2E; margin: 6px 0 0; font-style: italic; }

.dt-done-btn { width: 100%; padding: 15px; border-radius: 14px; border: 1.5px solid #7DA063;
  background: #fff; color: #5A7044; font-weight: 700; font-size: 15.5px; cursor: pointer;
  transition: transform .12s ease, box-shadow .18s ease; }
.dt-done-btn:active { transform: scale(.99); }
.dt-done-btn.on { background: linear-gradient(150deg, #7DA063, #5A7044); color: #fff; border-color: transparent;
  box-shadow: 0 14px 26px -14px rgba(90,112,68,.8); }

.dt-copy { width: 100%; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px dashed #C9A44E;
  background: #FBF3DF; color: #9A6E32; font-weight: 600; font-size: 13.5px; cursor: pointer; }
.dt-copy:active { transform: scale(.99); }

.dt-nav { display: flex; justify-content: space-between; gap: 10px; margin: 16px 0 4px; }
.dt-nav-b { flex: 1; background: #F4EEE0; border: none; border-radius: 12px; padding: 12px 10px;
  font-size: 13px; font-weight: 600; color: #7C6E58; cursor: pointer; text-align: left;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-nav-b.next { text-align: right; }
.dt-nav-b:active { transform: scale(.99); }

/* ---- Bộ 14 thẻ ở màn chính (tải trọn bộ PDF) ---- */
.dt-deck { margin: 4px 0 20px; padding: 15px 16px 16px; border-radius: 16px;
  background: linear-gradient(150deg, #FBF3DF, #F4EAD2); border: 1px solid #EAD9AE; }
.dt-deck-h { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15.5px; color: #9A6E32; }
.dt-deck-p { font-size: 13px; line-height: 1.55; color: #7C6E58; margin: 7px 0 12px; }
.dt-deck-btn { display: block; text-decoration: none; text-align: center; font-weight: 700; font-size: 14.5px;
  color: #fff; background: linear-gradient(150deg, #C9A44E, #B8902E); padding: 13px; border-radius: 12px;
  box-shadow: 0 14px 26px -14px rgba(184,144,46,.7); transition: transform .12s ease; }
.dt-deck-btn:active { transform: scale(.99); }

/* ---- Thẻ bài tập tải-về trong từng bài ---- */
.dt-card-dl { margin: 16px 0; padding: 15px 15px 16px; border-radius: 16px;
  background: #FBF8F1; border: 1px solid #EDE4D2; text-align: center; }
.dt-card-lbl { font-size: 13px; font-weight: 700; color: #7A4E63; letter-spacing: .3px; }
.dt-card-sub { font-size: 12.5px; color: #8A7B63; line-height: 1.5; margin: 5px 0 12px; }
.dt-card-img { display: block; width: 100%; max-width: 300px; margin: 0 auto 13px; height: auto;
  border-radius: 12px; box-shadow: 0 16px 34px -18px rgba(90,72,46,.55); border: 1px solid #EDE4D2; }
.dt-card-btn { display: inline-block; text-decoration: none; font-weight: 700; font-size: 14px;
  color: #5A7044; background: #fff; border: 1.5px solid #7DA063; padding: 11px 22px; border-radius: 12px;
  transition: transform .12s ease, box-shadow .18s ease; }
.dt-card-btn:active { transform: scale(.99); }
.dt-card-btn:hover { box-shadow: 0 12px 22px -14px rgba(90,112,68,.6); }

@media (prefers-reduced-motion: reduce) {
  .dt-row, .dt-done-btn, .dt-nav-b, .dt-prog-bar span, .dt-deck-btn, .dt-card-btn { transition: none; }
}

/* ⭐ 02/08/2026 — "Thử nhớ lại" (trắc nghiệm chạm) + Thẻ thực hành ba bước.
   Tông mận #7A4E63 của khoá Điểm Tựa, không bê tông xanh rêu của khoá khác sang.
   Vùng chạm tối thiểu 52px theo chuẩn cho mắt và tay ngoài 40 tuổi. */
.dt-tn-sub{font-size:.95rem;line-height:1.55;color:#6b6156;margin:.1rem 0 1rem}
.dt-tn-c{margin-bottom:1.15rem}
.dt-tn-q{display:flex;gap:.6rem;align-items:flex-start;color:#4a3340;font-weight:600;
  font-size:1.02rem;line-height:1.4;margin-bottom:.65rem}
.dt-tn-n{flex:none;width:1.6rem;height:1.6rem;border-radius:50%;background:rgba(122,78,99,.16);
  color:#7A4E63;font-size:.9rem;font-weight:700;display:grid;place-items:center;margin-top:.05rem}
.dt-tn-o{display:block;width:100%;text-align:left;min-height:52px;padding:.75rem .95rem;
  margin-bottom:.55rem;border-radius:12px;border:1.5px solid #e6dccf;background:#fff;color:#2f2a24;
  font:inherit;font-size:1rem;line-height:1.45;cursor:pointer;transition:border-color .18s,background .18s}
.dt-tn-o:hover{border-color:#b98aa0}
.dt-tn-o.chon{border-color:#7A4E63;border-width:2px;background:#f7f1f3;font-weight:500}
/* Ý bài muốn mình mang theo. KHÔNG bao giờ tô đỏ ô đã chọn: ở đây không ai chấm ai.
   Phân biệt bằng CHỮ chứ đừng bắt phân biệt bằng màu, mắt ngoài 40 khó tách hai sắc nhạt. */
.dt-tn-o.nen{border-color:#9FC196;background:#eaf3e7}
.dt-tn-o.nen::after{content:'🌿 điều bài muốn mình mang theo';display:block;margin-top:.35rem;
  font-size:.84rem;font-weight:600;letter-spacing:.04em;color:#4C7A48}
.dt-tn-o.chon::after{content:'Anh Chị chọn ý này';display:block;margin-top:.35rem;
  font-size:.84rem;font-weight:600;letter-spacing:.04em;color:#7A4E63}
.dt-tn-o.chon.nen::after{content:'🌿 Anh Chị chọn đúng điều bài muốn mình mang theo';color:#4C7A48}
.dt-tn-fb{margin-top:.35rem;padding:.8rem .95rem;border-radius:12px;background:#fbf4e6;
  border:1.5px solid rgba(200,150,60,.4);font-size:.99rem;line-height:1.6;color:#3b332a}
/* Thẻ thực hành ba bước */
.dt-soi-goc{font-size:1rem;line-height:1.65;color:#6b6156;margin-bottom:1rem}
.dt-steps{display:flex;flex-direction:column;gap:1.05rem;margin-top:.2rem}
.dt-step{display:flex;gap:.8rem;position:relative}
.dt-step:not(:last-child)::before{content:'';position:absolute;left:.82rem;top:1.95rem;
  bottom:-1.05rem;width:2px;background:#e6dccf}
.dt-step-n{flex:none;width:1.85rem;height:1.85rem;border-radius:50%;background:#7A4E63;color:#fff;
  font-weight:700;font-size:.98rem;display:grid;place-items:center;margin-top:.05rem;z-index:1}
.dt-step-m{flex:1;min-width:0}
.dt-step-q{color:#4a3340;font-weight:600;font-size:1rem;line-height:1.35;margin-bottom:.5rem}
.dt-step-t{width:100%;min-height:96px;padding:.7rem .8rem;border:1.5px solid #e6dccf;border-radius:10px;
  font:inherit;font-size:1.02rem;line-height:1.6;background:#fffdf9;color:#2f2a24;resize:vertical}
.dt-step-t:focus{outline:none;border-color:#b98aa0}
.dt-saved{font-size:.86rem;color:#4C7A48;opacity:0;transition:opacity .25s;margin:.5rem 0 .2rem}
.dt-saved.on{opacity:1}
/* Nguyên văn bài tập: gập lại, ba bước bên dưới mới là chỗ bắt tay vào làm. */
.dt-soi-goc{margin:0 0 1.1rem;border-bottom:1px dashed #e6dccf;padding-bottom:.8rem}
.dt-soi-goc>summary{cursor:pointer;list-style:none;font-size:.94rem;font-weight:600;color:#7A4E63;
  display:flex;align-items:center;gap:.4rem;min-height:44px}
.dt-soi-goc>summary::-webkit-details-marker{display:none}
.dt-soi-goc>summary::before{content:"\25B8";transition:transform .2s}
.dt-soi-goc[open]>summary::before{transform:rotate(90deg)}
.dt-soi-goc>div{font-size:1rem;line-height:1.65;color:#6b6156;padding:.2rem 0 .3rem}

/* ⭐ 02/08/2026 — Câu tự đo đầu bài (và đo lại cuối bài).
   Nền kem viền mận nhạt để nó là một "khoảng dừng", khác hẳn thẻ trắng của phần đọc. */
.dt-do{background:linear-gradient(140deg,#fbf5f7,#f6eef1);border:1.5px solid rgba(122,78,99,.28);
  border-radius:16px;padding:1.05rem 1.1rem;margin:1.1rem 0}
.dt-do.sau{background:linear-gradient(140deg,#f4f8f2,#edf4ea);border-color:rgba(76,122,72,.3)}
.dt-do-lbl{font-size:.82rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:#7A4E63}
.dt-do.sau .dt-do-lbl{color:#4C7A48}
.dt-do-q{font-size:1.08rem;line-height:1.6;color:#3b2f36;font-style:italic;margin:.55rem 0 .9rem}
.dt-do-mucs{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}
.dt-do-m{min-height:52px;padding:.6rem .5rem;border-radius:12px;border:1.5px solid #e6dccf;background:#fff;
  color:#2f2a24;font:inherit;font-size:.99rem;cursor:pointer;transition:border-color .18s,background .18s}
.dt-do-m:hover{border-color:#b98aa0}
.dt-do-m.chon{border-color:#7A4E63;border-width:2px;background:#f3e9ed;font-weight:600}
.dt-do.sau .dt-do-m.chon{border-color:#4C7A48;background:#e7f0e4}
.dt-do-fb{margin-top:.7rem;padding:.75rem .9rem;border-radius:12px;background:#fff;
  border:1px solid rgba(122,78,99,.2);font-size:.99rem;line-height:1.6;color:#4a4038}
@media(max-width:380px){.dt-do-mucs{grid-template-columns:1fr}}
