/* ---------- الشعار النصي (مشترك) ---------- */
.tlogo { --logo-scale: 1; display: inline-flex; align-items: center; gap: calc(var(--logo-fs) * .32 * var(--logo-scale)); font-size: calc(var(--logo-fs) * var(--logo-scale)); line-height: 1; color: var(--logo-c); }
.tlogo.mark-end { flex-direction: row-reverse; }
.tlogo-words { display: flex; flex-direction: column; gap: .22em; }
.tlogo .brand-text { font-family: var(--logo-font); font-weight: var(--logo-w); letter-spacing: var(--logo-ls); line-height: 1.05; white-space: nowrap; }
.tlogo .brand-tag { font-size: .36em; font-weight: 500; opacity: .7; white-space: nowrap; }
.tlogo .bm { flex: none; display: inline-grid; place-items: center; width: 1.25em; height: 1.25em; color: var(--logo-mark); }
.tlogo .bm svg { width: 100%; height: 100%; display: block; }
.tlogo .bm-square, .tlogo .bm-circle { position: relative; width: 1.32em; height: 1.32em; border-radius: .34em; background: var(--logo-mark); color: #fff; }
.tlogo .bm-circle { border-radius: 50%; }
.tlogo .bm b { font-family: var(--logo-font); font-weight: 800; font-size: .9em; line-height: 1; }
.tlogo .bm i { position: absolute; width: .3em; height: .3em; border-radius: 50%; background: var(--logo-accent); top: -.08em; left: -.08em; border: .07em solid #fff; }
.brand { display: inline-flex; align-items: center; text-decoration: none; box-shadow: none !important; }
.brand img { max-height: 40px; width: auto; }


.tlogo-svg { display: inline-flex; flex-direction: column; align-items: center; gap: 4px; line-height: 1; }
.tlogo-svg .hw-wordmark { display: block; height: calc(var(--logo-fs, 30px) * 1.3 * var(--logo-scale, 1)); width: auto; overflow: visible; }
.tlogo-svg .brand-tag { font-size: calc(var(--logo-fs, 30px) * .36 * var(--logo-scale, 1)); color: var(--logo-c); opacity: .7; white-space: nowrap; }
.tlogo-basma { --bm-c: #173A63; --bm-r1: #0F2C4F; --bm-r2: #173A63; --bm-r3: #3B78B5; }
.tlogo-basma .hw-wordmark { height: calc(var(--logo-fs, 30px) * 1.75 * var(--logo-scale, 1)); }
.on-dark .tlogo-basma, .hwa-login-logo .tlogo-basma { --bm-c: #fff; --bm-t1: #CFE0F5; --bm-r1: #fff; --bm-r2: #DCE8F7; --bm-r3: #9CC3EC; }

/* شعار بصمة المرسوم */
.tlogo-basma.bm-icon_type .hw-wordmark { height: calc(var(--logo-fs, 30px) * 1.45 * var(--logo-scale, 1)); }
.tlogo-basma.bm-type .hw-wordmark { height: calc(var(--logo-fs, 30px) * 1.3 * var(--logo-scale, 1)); }
.tlogo-basma.bm-stack .hw-wordmark, .tlogo-basma.bm-icon_stack .hw-wordmark { height: calc(var(--logo-fs, 30px) * 2.1 * var(--logo-scale, 1)); }
.tlogo-basma .hw-wordmark.bm-m { display: none; }
