/* Hamyar interactive concept trees / isolated from the global WordPress theme */
.hm-tree-view{background:#f8fbff!important;border:1px solid #cfe1f4!important;border-radius:30px!important;box-shadow:0 18px 52px rgba(25,72,139,.09)!important;padding:clamp(16px,3vw,34px)!important;font-family:Vazirmatn,IRANSans,sans-serif!important;color:#123a64!important}
.hm-tree-view *{box-sizing:border-box}
.hm-tree-hero{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px;background:linear-gradient(115deg,#092f65,#126cbb);border-radius:26px;padding:26px;color:#fff}
.hm-tree-hero h2{font-size:clamp(1.5rem,2.65vw,2.2rem)!important;line-height:1.6!important;margin:6px 0 12px!important;color:#fff!important;font-weight:900!important}
.hm-tree-hero p{color:#e7f3ff;font-size:clamp(.95rem,1.4vw,1.1rem);line-height:2;margin:0 0 10px}.hm-tree-hero small{color:#d9e7fa;font-size:.85rem}
.hm-tree-eyebrow{display:inline-flex;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.2);padding:6px 12px;border-radius:999px;color:#fff;font-weight:850}
.hm-tree-chapter-icon{display:grid;place-items:center;width:100px;height:100px;min-width:100px;border-radius:28px;background:rgba(255,255,255,.13);font-size:3.5rem}
.hm-tree-toolbar{display:flex;align-items:stretch;gap:11px;flex-wrap:wrap;margin:18px 0}.hm-tree-metric{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:112px;padding:12px 16px;background:#fff;border:1px solid #d7e8f8;border-radius:19px;box-shadow:0 5px 15px rgba(13,78,142,.05)}
.hm-tree-metric strong{color:#0c5fb4!important;font-size:1.42rem!important;font-weight:950!important;line-height:1.75}.hm-tree-metric span{font-size:.84rem;color:#547291;font-weight:650;text-align:center}
.hm-tree-buttons{display:flex;align-items:center;gap:8px;margin-inline-start:auto;flex-wrap:wrap}.hm-tree-buttons button{font-size:.94rem!important}
.hm-tree-tracker{display:flex;align-items:center;flex-wrap:wrap;gap:7px;background:#edf7ff;border:1px solid #c9e3fa;padding:12px 16px;border-radius:16px;color:#255b86;font-size:.9rem;line-height:1.9;margin:16px 0!important}.hm-tree-tracker [data-tree-status]{font-weight:850}.hm-tree-live-dot{width:9px;height:9px;display:inline-block;border-radius:50%;background:#26ae8b;box-shadow:0 0 0 4px #daf5ed}
.hm-tree-outline{background:#fff;border:1px solid #d6e5f5;border-radius:25px;padding:clamp(12px,2.3vw,25px)}
.hm-tree-list{list-style:none!important;margin:0!important;padding:0!important;display:grid;gap:11px}.hm-tree-list .hm-tree-list{padding:10px 17px 2px 0!important;margin:0 22px 0 0!important;border-right:2px dashed #c1dafa}
.hm-tree-node{margin:0!important;padding:0!important;list-style:none!important}.hm-tree-branch{background:#f5faff;border:1px solid #dbeafa;border-radius:17px;overflow:hidden;box-shadow:0 3px 9px rgba(19,66,126,.035)}
.hm-tree-depth-0>.hm-tree-node>.hm-tree-branch{border:1px solid #99c6f3;background:linear-gradient(135deg,#f4f9ff,#eaf4ff)}
.hm-tree-branch>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;cursor:pointer;list-style:none;color:#123e73;font-size:clamp(.96rem,1.4vw,1.13rem);font-weight:900;line-height:1.9;min-height:50px;transition:background .18s}
.hm-tree-depth-0>.hm-tree-node>.hm-tree-branch>summary{padding:16px 20px;font-size:clamp(1.04rem,1.5vw,1.23rem);color:#053e7b}
.hm-tree-branch>summary::-webkit-details-marker,.hm-tree-golden>summary::-webkit-details-marker{display:none}.hm-tree-branch>summary:hover{background:#e4f1ff}.hm-tree-branch[open]>summary{background:rgba(211,233,255,.55)}
.hm-tree-chevron{width:12px;height:12px;border-left:2px solid #1f6db4;border-bottom:2px solid #1f6db4;transform:rotate(-45deg);transition:transform .18s;flex:0 0 auto;margin:0 4px}.hm-tree-branch[open]>summary .hm-tree-chevron{transform:rotate(135deg)}
.hm-tree-branch>.hm-tree-list{padding:13px!important;border:none!important;margin:0!important;background:#fff}.hm-tree-leaf{display:flex;align-items:flex-start;gap:10px;background:#fff;border:1px solid #e0ebf5;border-radius:13px;padding:11px 13px;color:#274767;font-size:clamp(.92rem,1.2vw,1.05rem);font-weight:650;line-height:2}
.hm-tree-leaf-dot{width:8px;height:8px;flex-shrink:0;margin-top:13px;border-radius:99px;background:#169ed8;box-shadow:0 0 0 3px #e5f5fc}
.hm-tree-depth-2 .hm-tree-leaf-dot{background:#11a58b;box-shadow:0 0 0 3px #def9f2}.hm-tree-depth-3 .hm-tree-leaf-dot{background:#d79a31;box-shadow:0 0 0 3px #fff5de}
.hm-tree-golden{margin-top:20px;border:1px solid #e6d2a2;background:#fffbef;border-radius:22px;overflow:hidden}.hm-tree-golden>summary{display:flex;justify-content:space-between;gap:12px;align-items:center;cursor:pointer;padding:19px;color:#74501b;font-size:1.15rem;font-weight:900;list-style:none}.hm-tree-golden>summary span{font-size:.89rem;color:#8e722e}
.hm-tree-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:17px}.hm-tree-summary-item{display:flex;gap:12px;padding:14px;border-radius:17px;background:#fff;border:1px solid #f0e2bc}.hm-tree-summary-item>b{width:34px;height:34px;display:grid;place-items:center;border-radius:12px;background:#ffe9a9;color:#71501a;font-size:1.08rem;flex-shrink:0}.hm-tree-summary-item strong{color:#5d411a;font-size:1.02rem}.hm-tree-summary-item p{line-height:1.9;margin:5px 0 0;color:#64573e;font-size:.95rem}
.hm-tree-notes{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#f0f8ff;border-radius:17px;padding:12px 15px;margin-top:19px;flex-wrap:wrap}.hm-tree-notes p{margin:0;color:#355c78;font-size:.89rem;line-height:1.9}.hm-tree-notes .hm-button{white-space:normal!important}
.hm-tree-admin-wrap{font-family:Vazirmatn,Tahoma,sans-serif}.hm-tree-admin-chooser,.hm-tree-admin-stats{display:flex;align-items:center;gap:13px;flex-wrap:wrap;background:#fff;border:1px solid #d9e5ef;border-radius:17px;padding:16px;margin:20px 0}.hm-tree-admin-chooser label{display:flex;align-items:center;gap:9px;font-weight:700}.hm-tree-admin-chooser select{min-width:180px}.hm-tree-admin-stats{background:#ecf6ff;color:#164e81;font-weight:850}.hm-tree-admin-form{padding:22px;border:1px solid #d9e5ef;background:#fff;border-radius:18px;max-width:1100px}.hm-tree-admin-form>label{display:block;margin-bottom:10px}.hm-tree-admin-form textarea{display:block;width:100%;font-family:Vazirmatn,Tahoma,monospace;font-size:14px;line-height:2.1;padding:16px;border:1px solid #acc9e5;border-radius:14px;resize:vertical}
@media(max-width:700px){.hm-tree-hero{padding:18px;align-items:flex-start}.hm-tree-chapter-icon{width:59px;height:59px;min-width:59px;border-radius:17px;font-size:2rem}.hm-tree-summary-grid{grid-template-columns:1fr}.hm-tree-buttons{width:100%;margin:0}.hm-tree-buttons button{flex:1}.hm-tree-metric{flex:1;min-width:85px;padding:9px 7px}.hm-tree-list .hm-tree-list{margin-right:7px!important;padding-right:9px!important}.hm-tree-branch>summary{padding:12px}.hm-tree-depth-0>.hm-tree-node>.hm-tree-branch>summary{padding:13px}.hm-tree-branch>.hm-tree-list{padding:9px!important}}

.hm-tree-historical-note{margin:16px 0!important;padding:11px 16px;border-radius:14px;border:1px solid #e8d7a2;color:#715824;background:#fff9e7;font-weight:760;line-height:1.9}

/* 3.3.4 - progressive visual hierarchy; primary categories remain prominent. */
.hm-tree-view .hm-tree-depth-0>.hm-tree-node>.hm-tree-branch>summary{font-weight:950!important;font-size:clamp(1.05rem,1.5vw,1.23rem)!important;background:linear-gradient(110deg,#eaf3ff,#f6fbff)}
.hm-tree-view .hm-tree-depth-1>.hm-tree-node>.hm-tree-branch{background:#eff9fa!important;border-color:#cbe6e7!important}
.hm-tree-view .hm-tree-depth-1>.hm-tree-node>.hm-tree-branch>summary{font-size:clamp(.92rem,1.18vw,1.02rem)!important;font-weight:800!important;color:#12656e!important;padding:10px 13px!important;min-height:42px}
.hm-tree-view .hm-tree-depth-2>.hm-tree-node>.hm-tree-branch{background:#f5f3ff!important;border-color:#e0dcf6!important}
.hm-tree-view .hm-tree-depth-2>.hm-tree-node>.hm-tree-branch>summary{font-size:clamp(.86rem,1.05vw,.95rem)!important;font-weight:740!important;color:#60518c!important;padding:9px 12px!important;min-height:38px}
.hm-tree-view .hm-tree-depth-3>.hm-tree-node>.hm-tree-branch>summary{font-size:clamp(.82rem,.96vw,.91rem)!important;color:#685f46!important;background:#fffbf0!important;padding:8px 11px!important;min-height:36px}
.hm-tree-view .hm-tree-depth-1 .hm-tree-leaf{font-size:clamp(.86rem,1.05vw,.97rem)!important;padding:9px 11px!important;background:#f8fcff;border-color:#deebf6}
.hm-tree-view .hm-tree-depth-2 .hm-tree-leaf{font-size:clamp(.82rem,1vw,.91rem)!important;padding:8px 11px!important;background:#f8f9ff;border-color:#e2e4f5}
.hm-tree-view .hm-tree-depth-3 .hm-tree-leaf{font-size:clamp(.79rem,.94vw,.88rem)!important;padding:7px 10px!important;background:#fffdf7;border-color:#f0e9d5}
.hm-tree-view .hm-tree-list .hm-tree-list{gap:7px!important;border-right-color:#d5e4ee!important;padding-right:12px!important}
@media(max-width:700px){.hm-tree-view .hm-tree-depth-1>.hm-tree-node>.hm-tree-branch>summary{font-size:.91rem!important}.hm-tree-view .hm-tree-depth-2>.hm-tree-node>.hm-tree-branch>summary{font-size:.85rem!important}.hm-tree-view .hm-tree-depth-2 .hm-tree-leaf,.hm-tree-view .hm-tree-depth-3 .hm-tree-leaf{font-size:.83rem!important}}
