/* قارئ رسالة الماجستير — /eng-talal/thesis (٣٠ سبتمبر ٢٠٢٦)
   الهوية: #0DA4DB و#10153A، LamaSans بوزن 500 فأعلى. ملفٌّ ثابت يُربط مباشرةً (لا يمرّ بـrtlcss). */
@font-face{font-family:"Lama";font-weight:400;font-display:swap;src:url('/sgreco_portal/static/src/fonts/LamaSans-500.ttf') format('truetype')}
@font-face{font-family:"Lama";font-weight:500;font-display:swap;src:url('/sgreco_portal/static/src/fonts/LamaSans-500.ttf') format('truetype')}
@font-face{font-family:"Lama";font-weight:700;font-display:swap;src:url('/sgreco_portal/static/src/fonts/LamaSans-700.ttf') format('truetype')}

.thz{--navy:#10153A;--navy2:#3A3F63;--blue:#0DA4DB;--blue-t:#0A6E96;--sand-t:#86652B;--sky:#D9F0FA;--sky2:#A8DCF1;--sand:#B8925A;--sand2:#EFE6D6;--paper:#FBFAF6;--ink:#1f2340;--mute:#6A6E8B;--line:#E4E0D6;
  font-family:"Lama",sans-serif;font-weight:500;color:var(--ink);font-size:17px;line-height:1.95;font-feature-settings:"lnum"}
.thz img{max-width:100%;height:auto}
.thz p{margin:0}
.thz p + p{margin-top:12px}
.thz h2,.thz h3,.thz h4{scroll-margin-top:90px}

/* ── التقدّم ── */
.thp-progress{position:fixed;inset-block-start:0;inset-inline:0;height:4px;z-index:60;background:rgba(16,21,58,.08)}
.thp-progress i{display:block;height:100%;width:0;background:linear-gradient(90deg,#0DA4DB,#10153A)}

/* ── الصدر ── */
.thp-hero{background:radial-gradient(1200px 500px at 85% -10%,rgba(13,164,219,.35),transparent 60%),#10153A;color:#fff;padding-block:72px 64px;font-family:"Lama",sans-serif;font-weight:500}
.thp-hero-in{display:grid;grid-template-columns:1fr 260px;gap:48px;align-items:center}
.thp-eye{display:inline-block;color:#0DA4DB;font-weight:700;font-size:15px;border:1px solid rgba(13,164,219,.6);border-radius:999px;padding:4px 14px;margin-block-end:14px}
.thp-hero h1{font-weight:700;font-size:clamp(28px,4.2vw,46px);line-height:1.35;margin:0 0 12px;color:#fff}
.thp-title{font-size:clamp(17px,1.8vw,21px);color:#d6e9f5;line-height:1.8;margin:0 0 26px}
.thp-meta{list-style:none;margin:0 0 28px;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.thp-meta li{border-inline-start:3px solid #0DA4DB;padding-inline-start:14px}
.thp-meta small{display:block;color:#8fcbe6;font-size:13px}
.thp-meta b{display:block;font-weight:700;font-size:17px}
.thp-meta em{display:block;font-style:normal;color:#c8d6e6;font-size:14px}
.thp-cta{display:flex;flex-wrap:wrap;gap:12px}
.thp-btn{display:inline-flex;align-items:center;justify-content:center;min-height:48px;padding-inline:22px;border-radius:14px;background:#0DA4DB;color:#10153A;text-decoration:none;font-weight:700;font-size:16px;border:1px solid #0DA4DB;transition:transform .2s,background .2s}
.thp-btn:hover{transform:translateY(-1px);color:#10153A;background:#3DB6E2}
.thp-btn.ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
.thp-btn.ghost:hover{background:rgba(255,255,255,.14);color:#fff}
.thp-btn.ghost.dark{color:#10153A;border-color:#10153A}
.thp-btn.ghost.dark:hover{background:#10153A;color:#fff}
.thp-btn.saud{background:#fff;color:#10153A;border-color:#fff}
.thp-btn.saud:before{content:"";width:10px;height:10px;border-radius:50%;background:#0DA4DB;box-shadow:0 0 0 4px rgba(13,164,219,.25);margin-inline-end:10px}
.thp-hero-card{display:grid;grid-template-columns:auto 1fr;align-items:baseline;gap:6px 12px;padding:26px;border-radius:22px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.14)}
.thp-hero-card span{grid-column:1/-1;color:#8fcbe6;font-size:14px;margin-block-end:6px}
.thp-hero-card b{font-size:40px;font-weight:700;color:#0DA4DB;line-height:1.1}
.thp-hero-card em{font-style:normal;color:#e4eef7;font-size:15px}

/* ── الخلاصات ── */
.thp-keys{background:#F4F1EA;padding-block:48px;font-family:"Lama",sans-serif;font-weight:500}
.thp-keys h2{font-weight:700;color:#10153A;font-size:clamp(22px,2.6vw,30px);margin:0 0 20px}
.thp-keys ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;counter-reset:k}
.thp-keys li{counter-increment:k;background:#fff;border-radius:18px;padding:20px;border:1px solid #E4E0D6;display:flex;flex-direction:column;gap:8px}
.thp-keys li:before{content:counter(k,decimal-leading-zero);font-weight:700;color:#0A6E96;font-size:22px}
.thp-keys b{font-weight:700;color:#10153A;font-size:17px}
.thp-keys span{color:#2B3363;font-size:15px;line-height:1.85}
.thp-keys small{margin-top:auto;color:#5F6383;font-size:12px}

/* ── القارئ ── */
.thp-reader{display:grid;grid-template-columns:300px minmax(0,1fr);gap:40px;padding-block:40px 80px;align-items:start}
.thp-side{position:sticky;inset-block-start:16px;max-height:calc(100vh - 32px);font-family:"Lama",sans-serif;font-weight:500}
.thp-side-in{display:flex;flex-direction:column;gap:14px;max-height:calc(100vh - 32px);overflow:auto;padding-inline-end:6px;overscroll-behavior:contain}
.thp-side-toggle{display:none}
.thp-search span{display:block;font-size:13px;color:#5F6383;margin-block-end:6px}
.thp-search input{width:100%;min-height:46px;border:1px solid #DCD3C0;border-radius:12px;padding-inline:14px;font:inherit;font-size:15px;background:#fff;color:#10153A}
.thp-search input:focus{outline:2px solid #0DA4DB;outline-offset:1px}
.thp-hits:empty{display:none}
.thp-hits{background:#fff;border:1px solid #E4E0D6;border-radius:14px;padding:10px;display:grid;gap:6px;font-size:14px}
.thp-hits .hd{color:#5F6383;font-size:13px}
.thp-hits a{display:block;padding:8px 10px;border-radius:10px;color:#1f2340;text-decoration:none;line-height:1.7}
.thp-hits a:hover{background:#E6F5FC}
.thp-hits a small{display:block;color:#0A6E96;font-size:12px}
.thp-hits mark,.thz mark.thp-hl{background:#FFE58A;color:inherit;border-radius:3px;padding:0 1px}
.thp-toc{display:grid;gap:4px}
.thp-toc-ch{display:flex;gap:10px;align-items:flex-start;padding:10px;border-radius:12px;text-decoration:none;color:#10153A;font-weight:700;font-size:15px;line-height:1.5}
.thp-toc-ch i{font-style:normal;color:#0A6E96;font-size:14px;min-width:24px}
.thp-toc-ch small{display:block;color:#5F6383;font-weight:500;font-size:12px}
.thp-toc-ch.on{background:#10153A;color:#fff}
.thp-toc-ch.on small,.thp-toc-ch.on i{color:#8fcbe6}
.thp-toc ol{list-style:none;margin:0 0 6px;padding:0 34px 0 0;display:none}
.thp-toc-ch.on + ol{display:block}
.thp-toc ol a{display:block;padding:4px 8px;border-radius:8px;color:#3A3F63;text-decoration:none;font-size:13.5px;line-height:1.6}
.thp-toc ol li.l3 a{padding-inline-start:18px;font-size:13px;color:#5F6383}
.thp-toc ol a.on{color:#0A6E96;background:#E6F5FC}
.thp-side-cta{display:flex;gap:8px}
.thp-side-cta a{flex:1;text-align:center;padding:10px;border-radius:12px;border:1px solid #10153A;color:#10153A;text-decoration:none;font-weight:700;font-size:14px}
.thp-side-cta a:last-child{background:#0DA4DB;border-color:#0DA4DB;color:#10153A}

.thp-main{min-width:0}
.thp-note{font-family:"Lama",sans-serif;font-weight:500;color:#5F6383;font-size:14px;background:#FAF8F3;border:1px dashed #DCD3C0;border-radius:12px;padding:12px 16px;margin:0 0 24px}
.thp-ch{background:#FBFAF6;border:1px solid #EAE4D6;border-radius:24px;padding:40px clamp(18px,4vw,48px);margin-block-end:28px;scroll-margin-top:24px}
.thp-ch-head{display:flex;align-items:center;gap:18px;border-block-end:2px solid #10153A;padding-block-end:18px;margin-block-end:26px}
.thp-ch-head .no{font-size:56px;font-weight:700;line-height:1;color:transparent;-webkit-text-stroke:1.5px #0DA4DB}
.thp-ch-head small{display:block;color:#0A6E96;font-weight:700;font-size:14px}
.thp-ch-title{margin:0;font-size:clamp(24px,3vw,34px);font-weight:700;color:#10153A;line-height:1.3}
.thp-ch-head em{margin-inline-start:auto;font-style:normal;color:#5F6383;font-size:13px;white-space:nowrap}
.thp-end{text-align:center;padding:40px 20px;font-family:"Lama",sans-serif;font-weight:500}
.thp-end b{display:block;font-size:22px;color:#10153A}
.thp-end p{color:#3A3F63}
.thp-end .thp-cta{justify-content:center}

/* ── ملاءمة قواعد الإصدار المطبوع للشاشة ── */
.thz .res,.thz .isor,.thz .term,.thz .rcx,.thz .gc,.thz .tli,.thz figure{break-inside:auto}
.thz .src{white-space:nowrap}
.thz .thp-ch-body{overflow-wrap:break-word;overflow-x:clip}
.thz .tbl{max-width:100%;width:100%;min-width:0;table-layout:fixed}
.thz .tbl th,.thz .tbl td{white-space:normal;overflow-wrap:anywhere}
.thz .donut{flex:none}
/* مقاساتُ المطبوع بالنقطة صغيرةٌ على الشاشة: تكبيرٌ موحَّد للمتن على الشاشات الواسعة */
@media (min-width:981px){.thz .thp-ch-body{zoom:1.12}}

@media (max-width:980px){
  .thp-hero-in{grid-template-columns:minmax(0,1fr)}
  .thp-hero-card{grid-template-columns:auto 1fr auto 1fr}
  .thp-reader{grid-template-columns:minmax(0,1fr);gap:16px}
  .thp-side{position:sticky;inset-block-start:4px;z-index:40;max-height:none}
  .thp-side-toggle{display:block;width:100%;min-height:48px;border:0;border-radius:14px;background:#10153A;color:#fff;font:inherit;font-weight:700;font-size:16px}
  .thp-side-in{display:none;background:#fff;border:1px solid #E4E0D6;border-radius:16px;padding:14px;margin-top:8px;max-height:70vh;box-shadow:0 12px 30px rgba(16,21,58,.18)}
  .thp-side.open .thp-side-in{display:flex}
}
@media (max-width:640px){
  .thp-hero{padding-block:48px 40px}
  .thp-meta{grid-template-columns:1fr}
  .thp-hero-card{grid-template-columns:auto 1fr}
  .thp-ch{padding:24px 16px;border-radius:18px}
  .thp-ch-head{flex-wrap:wrap;gap:10px}
  .thp-ch-head .no{font-size:40px}
  .thp-ch-head em{margin-inline-start:0;white-space:normal}
  .thz{font-size:16px}
  /* شبكات المطبوع ذات الأعمدة الثابتة تنطوي عموداً واحداً */
  .thz [class*="grid"],.thz .rg,.thz .isot,.thz .terms,.thz .recs,.thz .kpi2,.thz .logos,.thz .pics2,.thz .swot,.thz .twin,.thz .models,.thz .steps3,.thz .tools3,.thz .chips4,.thz .chips6,.thz .imp3,.thz .depts,.thz .clubs,.thz .erps,.thz .thx,.thz .colors,.thz .evo,.thz .traits,.thz .hyp,.thz .dl,.thz .rcol{grid-template-columns:1fr !important}
  .thz .rb{flex-wrap:wrap}
  .thz .chain{flex-wrap:wrap}
  .thz .tbl{font-size:13px}
  .thz .tbl th,.thz .tbl td{padding:8px 6px}
}
@media (max-width:560px){
  /* رسومُ المطبوع ذات المقاس الثابت (حلقة ISO، رادار، منهجية العملية) تُصغَّر كتلةً واحدة */
  .thz .ring7 .rc,.thz .radar .rd,.thz .proc,.thz .pdca{zoom:.7}
}
@media (max-width:380px){
  .thz .ring7 .rc,.thz .radar .rd,.thz .proc,.thz .pdca{zoom:.6}
}
@media print{.thp-progress,.thp-side,.thp-cta,.thp-keys{display:none}.thp-reader{display:block}}
