/* Hamyar 3.3.22 — cohesive academic palette; local fonts, no external assets. */
.hm3322-matrix,.hm3322-shell,.hm3322-admin,.hm3322-collapse{--hm22-ink:#17314b;--hm22-muted:#526b82;--hm22-line:#dce6f0;--hm22-navy:#17466e;--hm22-surface:#f7fafd;color:var(--hm22-ink);font-family:Vazirmatn,Tahoma,sans-serif;box-sizing:border-box}
.hm3322-matrix *, .hm3322-shell *, .hm3322-admin *{box-sizing:border-box}
.hm3322-matrix{margin:18px 0 26px;background:#fff;border:1px solid var(--hm22-line);border-radius:22px;overflow:hidden;box-shadow:0 10px 32px rgba(29,63,97,.07)}
.hm3322-matrix>header{padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;background:linear-gradient(115deg,#16446e,#235d85 57%,#2d778b);color:white}
.hm3322-matrix>header h2{color:#fff!important;margin:5px 0;font-size:clamp(1.2rem,2vw,1.7rem)!important;line-height:1.6!important}
.hm3322-matrix>header span,.hm3322-matrix>header p{display:block;color:#dceff8!important;font-size:.85rem;line-height:1.8;margin:0}
.hm3322-matrix>header>strong{border-radius:13px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.28);padding:10px 14px;white-space:nowrap;color:white;font-size:.85rem}
.hm3322-matrix-grid{padding:16px;display:grid;gap:7px;background:linear-gradient(180deg,#f7fafd,#fff)}
.hm3322-matrix-head,.hm3322-matrix-row{display:grid;grid-template-columns:minmax(72px,.9fr) repeat(5,minmax(0,1fr));gap:7px;align-items:stretch}
.hm3322-tone-notes{--t-bg:#e8f1fb;--t-fg:#255982;--t-line:#cfdfef}
.hm3322-tone-practice{--t-bg:#e4f3f2;--t-fg:#226e70;--t-line:#cbe6e3}
.hm3322-tone-exams{--t-bg:#e6edf9;--t-fg:#3e588f;--t-line:#d1dbf0}
.hm3322-tone-tree{--t-bg:#eeedf8;--t-fg:#62578b;--t-line:#dedbf0}
.hm3322-tone-summary{--t-bg:#edf2f5;--t-fg:#4c687e;--t-line:#d8e3eb}
.hm3322-matrix-head>div{border:1px solid var(--t-line,#dae6ef);background:var(--t-bg,#eaf0f6);color:var(--t-fg,#294963);font-weight:850;border-radius:12px;text-align:center;padding:11px 5px;font-size:.82rem;display:flex;align-items:center;justify-content:center;gap:6px;line-height:1.5;min-height:49px}
.hm3322-matrix-head>div span{font-size:1.15rem;font-weight:900}
.hm3322-chapter{display:flex;gap:7px;align-items:center;justify-content:center;font-weight:800;white-space:nowrap;background:#f0f5fa;border-radius:11px;font-size:.79rem;padding:8px 4px;color:#23445f}
.hm3322-chapter b{display:grid;place-items:center;min-width:25px;height:25px;border-radius:8px;background:#fff;border:1px solid #d8e5f0;color:#285679}
.hm3322-cell{display:flex!important;justify-content:space-between;align-items:center;gap:6px;min-height:43px;height:100%;padding:9px 11px!important;color:var(--t-fg)!important;background:var(--t-bg)!important;border:1px solid var(--t-line)!important;border-radius:11px;text-decoration:none!important;font-size:.82rem!important;font-weight:750!important;line-height:1.5;transition:background .16s,box-shadow .16s,transform .16s}
.hm3322-cell:hover,.hm3322-cell:focus-visible{box-shadow:inset 0 0 0 1px var(--t-fg);transform:translateY(-1px);outline:none}
.hm3322-cell[aria-current=page]{background:var(--t-fg)!important;color:#fff!important;border-color:var(--t-fg)!important}
.hm3322-cell>span:last-child{opacity:.7}.hm3322-mobile-label{display:none}
.hm3322-collapse{border:1px solid #dce6f0;border-radius:16px;margin:14px 0;background:#f7fafd;overflow:hidden}.hm3322-collapse>summary{padding:13px 18px;font-weight:850;cursor:pointer;color:#245477}.hm3322-collapse .hm3322-matrix{margin:0;border-radius:0;box-shadow:none}
.hm3322-shell{width:min(1100px,94%);margin:24px auto 40px}.hm3322-hero{background:linear-gradient(115deg,#163d65,#245b82 58%,#307a88);padding:28px 32px;border-radius:22px;color:white;box-shadow:0 14px 36px #163d651e;margin:15px 0 20px}
.hm3322-hero h1{color:white!important;font-weight:900;font-size:clamp(1.6rem,3vw,2.2rem)!important;line-height:1.6;margin:7px 0}.hm3322-hero p,.hm3322-hero small{color:#e1f0f7!important;font-size:.95rem;line-height:1.9}
.hm3322-club-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:18px 0}.hm3322-club-cards article{padding:22px;border-radius:18px;border:1px solid #cfdfef;background:#eaf2fb;color:#254b70}.hm3322-club-cards article+article{background:#e6f3f2;border-color:#cfe5e3;color:#24676c}.hm3322-club-cards h2{font-size:1.3rem;margin:9px 0;color:inherit}.hm3322-club-cards span{font-size:.82rem;font-weight:800}.hm3322-club-cards p,.hm3322-club-cards small{line-height:1.9}
.hm3322-panel{background:#fff;border:1px solid #dce6f0;border-radius:18px;margin:18px 0;padding:22px;box-shadow:0 5px 20px #183d6510}.hm3322-panel h2{margin-top:0;color:#23496a;font-size:1.2rem}.hm3322-panel form{display:grid;gap:12px;margin:12px 0}.hm3322-panel form label:not(.hm3322-check){display:grid;gap:6px}.hm3322-panel textarea,.hm3322-panel input:not([type=checkbox]):not([type=hidden]),.hm3322-panel select{max-width:100%;border:1px solid #cddce8;border-radius:9px;padding:8px 12px;font:inherit}.hm3322-panel textarea{width:100%;resize:vertical}.hm3322-panel .hm3322-check{display:flex;align-items:center;gap:9px;background:#f3f7fb;border-radius:9px;padding:11px 12px}.hm3322-check input{accent-color:#23668b;width:18px;height:18px}.hm3322-panel p{line-height:1.9}.hm3322-action{display:inline-flex!important;align-items:center;justify-content:center;justify-self:start;min-height:44px;padding:11px 20px;border:0;border-radius:11px;background:#235d85;color:#fff!important;font:inherit;font-weight:800;text-decoration:none!important;cursor:pointer}.hm3322-action:hover{background:#17466e}.hm3322-notice{border:1px solid #dce6f0;background:#f7fafd;padding:16px;border-radius:12px;margin:12px 0;overflow-wrap:anywhere}.hm3322-notice h3{margin:6px 0;font-size:1.02rem;color:#254b70}.hm3322-notice small{color:#526b82}.hm3322-notice p{white-space:normal}.hm3322-shell footer{text-align:center;color:#526b82;padding:12px}.hm3322-admin .hm3322-inline{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.hm3322-admin .hm3322-inline label{display:flex!important;align-items:center;gap:5px}.hm3322-table-scroll{overflow:auto;margin:14px 0}.hm3322-table-scroll table{min-width:730px}.hm3322-table-scroll th{background:#235d85!important;color:white!important}.hm3322-table-scroll td,.hm3322-table-scroll th{padding:10px!important;vertical-align:middle}.hm3322-table-scroll bdi{white-space:nowrap}
.hm-app-nav .hm-app-link-clubs{background:#e8f3f6!important;color:#205c70!important;border-color:#cde5ea!important}.hm-app-nav .hm-app-link-clubs[aria-current=page]{background:#235d85!important;color:white!important}.hm-app-nav .hm3322-nav-group{position:relative}.hm-app-nav .hm3322-nav-group>summary{list-style:none;cursor:pointer}.hm-app-nav .hm3322-nav-group>summary::-webkit-details-marker{display:none}.hm-app-nav .hm3322-nav-group nav{position:absolute;top:100%;right:0;z-index:1001;display:grid;gap:3px;background:white;border:1px solid #dbe6ef;border-radius:14px;padding:8px;min-width:200px;box-shadow:0 12px 26px #163d6522}.hm-app-nav .hm3322-nav-group nav a{padding:9px 12px;border-radius:8px;text-decoration:none;color:#23496a;white-space:nowrap}.hm-app-nav .hm3322-nav-group nav a:hover,.hm-app-nav .hm3322-nav-group nav a[aria-current=page]{background:#e8f2fa}
@media(max-width:860px){.hm3322-matrix-grid{padding:11px;gap:11px}.hm3322-matrix-head{display:none}.hm3322-matrix-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;background:#fff;border:1px solid #dce6f0;border-radius:13px;padding:10px}.hm3322-chapter{grid-column:1/-1;justify-content:flex-start;padding:8px 11px}.hm3322-matrix-row>div:last-child{grid-column:1/-1}.hm3322-mobile-label{display:inline}.hm3322-desktop-label{display:none}.hm3322-cell{min-height:44px;font-size:.9rem!important}.hm3322-matrix>header{padding:16px}.hm3322-panel{padding:17px}.hm3322-club-cards{grid-template-columns:1fr}.hm3322-hero{padding:20px}.hm3322-shell{margin-top:14px}}
@media(prefers-reduced-motion:reduce){.hm3322-cell{transition:none}.hm3322-cell:hover{transform:none}}

@media(min-width:861px){.hm64-general-matrix .hm3322-matrix-head,.hm64-general-matrix .hm3322-matrix-row{grid-template-columns:minmax(90px,1.15fr) repeat(3,minmax(0,1fr));}}
