
/* Separate monastic Naktham and lay Dhammasuksa tracks. */
.learning-card.dhamma-track-card:not(.has-bg){background:#fff9e9;border-color:#e4d9bd}
.learning-card.dhamma-track-card:not(.has-bg) .learning-card-kicker{color:#805e2f}
.learning-card.dhamma-track-card:not(.has-bg)[data-area="dhamma-naktham"]{background:linear-gradient(135deg,#fff8e6,#f1e4c8)}
.learning-card.dhamma-track-card:not(.has-bg)[data-area="dhamma-thammasuksa"]{background:linear-gradient(135deg,#f4f8f4,#e1eee2);border-color:#cddfd0}
.learning-card.dhamma-track-card .learning-title-main{font-weight:750}
.hero.dhamma-hero{border-radius:23px;min-height:210px;padding:32px 38px;color:#fff;background-color:#50402b}
.hero.dhamma-monk{background-image:linear-gradient(105deg,rgba(42,33,23,.97),rgba(89,58,29,.94) 65%,rgba(152,101,43,.64)),repeating-linear-gradient(115deg,transparent 0 45px,rgba(230,189,107,.14) 46px 49px)}
.hero.dhamma-lay{background-image:linear-gradient(100deg,rgba(18,53,47,.98),rgba(29,75,65,.94) 60%,rgba(59,104,77,.7)),repeating-linear-gradient(115deg,transparent 0 45px,rgba(245,233,178,.12) 46px 49px)}
.dhamma-hero .eyebrow{color:#f4d69c}.dhamma-hero h1{font-weight:750}
.dhamma-content{margin-top:25px}
.dhamma-section-heading{margin-bottom:20px}.dhamma-section-heading .eyebrow{color:#957440}
.dhamma-section-heading h2{font-size:24px;line-height:1.3;color:#203f34;margin:8px 0}
.dhamma-section-heading p{color:#63786c;font-size:13px;line-height:1.7}
.dhamma-level-grid,.dhamma-subject-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.dhamma-level-card,.dhamma-subject-card{text-align:left;display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;border:1px solid #dae4d8;border-radius:16px;background:#fff;padding:21px 20px;color:#28473a;min-height:124px;transition:border-color .15s,box-shadow .15s}
.dhamma-level-card:hover,.dhamma-subject-card:hover{border-color:#b49b6e;box-shadow:0 9px 24px rgba(40,69,49,.09)}
.dhamma-level-card>span:not(.dhamma-level-symbol),.dhamma-subject-card{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}
.dhamma-level-card strong,.dhamma-subject-card strong{font-size:17px;line-height:1.4}
.dhamma-level-card small,.dhamma-subject-card small{font-size:12px;line-height:1.6;color:#73887b;margin-top:7px}
.dhamma-level-card b{font-size:20px;color:#91a197;margin-left:auto}
.dhamma-level-symbol{display:grid;place-items:center;flex:0 0 49px;width:49px;height:49px;background:#efe4cd;color:#77552b;border-radius:50%;font-size:19px}
.dhamma-subject-card{min-height:132px;gap:7px}.dhamma-subject-card span{font-size:12px;color:#9a773c;margin-top:12px}
.dhamma-source{font-size:12px;line-height:1.85;color:#6d7d70;margin-top:22px}
.dhamma-source a{color:#335e47;text-underline-offset:3px}
.dhamma-breadcrumb button{padding:0;border:0;background:transparent;color:#557365;font-size:12px;cursor:pointer;margin-bottom:18px}
.dhamma-question{background:#fff;border:1px solid #dce4da;border-radius:16px;padding:22px 24px;margin-bottom:16px}
.dhamma-question-heading{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.dhamma-question-heading strong{font-size:17px;color:#1f4937}
.dhamma-question-heading small{font-size:11px;color:#829387;margin-left:auto}
.dhamma-prompt{white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.85;font-weight:600}
.dhamma-question-image{max-width:100%;max-height:360px;height:auto;object-fit:contain}
.dhamma-selfanswer{display:grid;gap:7px;font-size:12px;color:#607064;margin:15px 0}
.dhamma-selfanswer textarea{width:100%;resize:vertical;border:1px solid #d3dfd3;border-radius:10px;padding:12px;font:inherit;line-height:1.7}
.dhamma-options{display:grid;gap:11px;border:0;padding:8px 0;margin:14px 0}
.dhamma-options legend{color:#728074;font-size:12px}
.dhamma-options label{background:#f8faf7;border:1px solid #e1e7df;border-radius:9px;padding:11px 13px;display:flex;align-items:center;gap:8px;cursor:pointer;font-size:13px}
.dhamma-actions{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:13px 0}
.dhamma-answer{background:#f1f7f1;border:1px solid #d3e4d4;border-radius:12px;padding:17px;margin-top:15px}
.dhamma-answer h4{color:#1d5539;font-size:14px;margin:2px 0 12px}
.dhamma-answer p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.95;font-size:13px}
.dhamma-answer img{max-width:100%;height:auto;max-height:480px;object-fit:contain}
.dhamma-check-result{font-weight:650;color:#206247}.dhamma-draft{font-size:11px;color:#95592b;background:#fff4e4;border-radius:6px;padding:3px 7px}
.dhamma-empty{padding:30px;background:#fff;border:1px solid #dbe3db;border-radius:13px}
.dhamma-empty strong{font-size:16px}.dhamma-empty p{font-size:13px;color:#728477;line-height:1.8}
.dhamma-add{margin:0 0 18px}
.dhamma-editor{display:grid;grid-template-columns:1fr 1fr;gap:12px;background:#fffaf1;border:1px solid #d9bd8f;border-radius:14px;padding:20px;margin-bottom:20px}
.dhamma-editor h3,.dhamma-editor label:has(textarea),.dhamma-editor label:has(input[type=url]),.dhamma-editor .dhamma-actions,.dhamma-editor #dhamma-save-status{grid-column:1/-1}
.dhamma-editor label{font-size:12px;color:#4e6451;display:grid;gap:7px;font-weight:650}
.dhamma-editor input:not([type=checkbox]),.dhamma-editor select,.dhamma-editor textarea{width:100%;min-width:0;border:1px solid #cbd8c8;border-radius:8px;padding:10px 12px;font-size:13px;color:#244335;background:white}
.dhamma-editor textarea{line-height:1.75}
.dhamma-editor .dhamma-publish-label{display:flex;align-items:center;grid-column:1/-1;gap:8px}
.dhamma-editor h3{margin:0 0 8px}
.dhamma-editor #dhamma-save-status{font-size:12px;color:#9e4e36}
@media(max-width:850px){.dhamma-level-grid,.dhamma-subject-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:580px){
 .dhamma-level-grid,.dhamma-subject-grid,.dhamma-editor{grid-template-columns:1fr}
 .hero.dhamma-hero{padding:26px 22px;min-height:190px}
 .dhamma-question{padding:18px}
 .dhamma-editor{padding:15px}
}


/* Historical Naktham Tri blueprint (2562–2567, excluding 2564) */
.dhamma-year-select{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin:1rem 0;padding:.8rem 1rem;background:var(--surface,#f4f6f3);border:1px solid rgba(60,95,72,.16);border-radius:12px;font-weight:700}
.dhamma-year-select select{font:inherit;padding:.55rem .8rem;border:1px solid #9dad9e;border-radius:8px;background:white;min-width:170px}
.dhamma-blueprint{margin:1rem 0 1.5rem;padding:1.1rem;border:1px solid rgba(60,95,72,.23);border-radius:14px;background:rgba(126,158,118,.055)}
.dhamma-blueprint h3{margin:.05rem 0 .45rem}
.dhamma-blueprint p{font-size:.92rem;margin:.35rem 0 .8rem}
.dhamma-blueprint ol{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:.65rem;margin:0;padding:0;list-style:none}
.dhamma-blueprint li{background:var(--card,#fff);border:1px solid rgba(90,110,94,.18);border-radius:9px;padding:.75rem}
.dhamma-blueprint li strong,.dhamma-blueprint li small{display:block}
.dhamma-blueprint li small{font-size:.79rem;color:var(--muted,#6b746e);margin-top:.35rem;line-height:1.5}
