/* ============ تم — صفحات الدليل والخدمات ============
   فوق assets/tam-tools.css (نفس الألوان والمتغيّرات). لا style="" في
   الصفحات — CSP style-src 'self' تمنعها. */

/* مسار الصفحة */
.crumbs{max-width:980px;margin:0 auto;padding:6px 16px 0;font-size:.82rem;color:var(--muted);}
.crumbs ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:4px;}
.crumbs li+li::before{content:"‹";margin-inline-end:4px;color:var(--rule-2);}
.crumbs a{color:var(--muted);text-decoration:none;}
.crumbs a:hover{color:var(--brand);text-decoration:underline;}

.hero small,.card h2 small{font-weight:400;color:var(--muted);font-size:.8em;}
.sub{margin:2px auto 0;color:var(--ink-2);font-size:.92rem;}
.sub a{color:inherit;}
p.en,.sub.en{direction:ltr;}
.uni-hero{padding-top:14px;}
.uni-hero h1{margin-top:8px;}

/* الشعارات */
.ulogo{display:inline-block;object-fit:contain;flex:none;border-radius:10px;background:#fff;}
:root[data-theme="dark"] .ulogo{background:#F4F4F5;}
.ulogo.s72{width:72px;height:72px;padding:4px;}
.ulogo.s56{width:56px;height:56px;padding:3px;}
.ulogo.s40{width:40px;height:40px;padding:2px;border-radius:8px;}
.ulogo.ph{display:inline-flex;align-items:center;justify-content:center;background:var(--brand-soft);
  color:var(--brand);font-weight:800;font-size:1.1rem;}
.ulogo.s72.ph{font-size:1.8rem;}

/* الشارات */
.badge{display:inline-block;padding:0 8px;border-radius:999px;font-size:.76rem;font-weight:700;
  vertical-align:middle;background:var(--surface-2);color:var(--ink-2);line-height:1.7;}
.badge.unsure{background:var(--warn-soft);color:var(--warn);}

/* معلومات أساسية */
.facts dl{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px 16px;}
.facts dl div{min-width:0;}
.facts dt{font-size:.8rem;color:var(--muted);font-weight:600;}
.facts dd{margin:0;font-weight:700;overflow-wrap:anywhere;}

/* الشرائح (chips) */
.chips > div,.chips{display:flex;flex-wrap:wrap;gap:6px;}
ul.chips{list-style:none;margin:0;padding:0;}
.chips b{width:100%;}
.chips a{display:inline-block;text-decoration:none;color:var(--ink-2);background:var(--bg);
  border:1px solid var(--rule);border-radius:999px;padding:9px 14px;font-size:.84rem;font-weight:600;}
.chips a:hover{border-color:var(--brand);color:var(--brand);}

/* الكليات والأقسام */
.college{border-top:1px solid var(--rule);padding:12px 0 4px;scroll-margin-top:72px;}
.college:first-of-type{border-top:0;padding-top:0;}
.college h3{margin:0;font-size:1.02rem;}
.college h3 a{color:var(--ink);text-decoration-color:var(--rule-2);}
.college h3 a:hover{color:var(--brand);}
.college .sub{margin:0;font-size:.8rem;color:var(--muted);text-align:start;}
.depts{margin:6px 0 0;padding-inline-start:20px;columns:2 220px;column-gap:24px;}
.depts li{break-inside:avoid;margin-bottom:2px;}
.depts.wide{columns:1;list-style:none;padding:0;}
.depts.wide li{display:flex;flex-direction:column;padding:8px 0;border-bottom:1px solid var(--rule);}
.depts.wide li:last-child{border-bottom:0;}
.depts.wide small{color:var(--muted);text-align:start;}
.data-note p,.disclaimer p{margin:6px 0 0;font-size:.9rem;color:var(--ink-2);}
.disclaimer{border-inline-start:4px solid var(--warn);}
.src{margin:-4px 0 16px;overflow-wrap:anywhere;}

/* الفهرس */
.finder[hidden]{display:none;}
.ugroup h2{scroll-margin-top:72px;}
.unilist{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:8px;}
.unilist li{min-width:0;}
.unilist li[hidden]{display:none;}
.unilist a{display:flex;gap:10px;align-items:center;padding:8px 10px;border:1px solid var(--rule);
  border-radius:10px;text-decoration:none;color:var(--ink);background:var(--bg);min-height:58px;min-width:0;}
.uname{flex:1;}
.unilist a:hover{border-color:var(--brand);}
.uname{display:flex;flex-direction:column;min-width:0;line-height:1.35;}
.uname b{font-size:.94rem;}
.uname small{color:var(--muted);font-size:.76rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.uname small.en{text-align:start;}
.ugroup[hidden]{display:none;}

/* كتلة الخدمات */
.free-links{list-style:none;margin:14px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 14px;justify-content:center;font-size:.88rem;}
.cta{margin-bottom:16px;}

/* صفحة الخدمات */
.kh-hero .cta-row{margin-top:14px;}
.svcgrid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:10px;}
.svc{border:1px solid var(--rule);border-radius:10px;padding:12px;background:var(--bg);}
.svc h3{margin:0 0 4px;font-size:1rem;}
.svc .price{margin:0;font-weight:800;color:var(--brand);}
.svc .hint{margin:4px 0 0;}
.steps3{margin:0 0 12px;padding:0;list-style:none;counter-reset:s;display:grid;gap:10px;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.steps3 li{counter-increment:s;display:flex;flex-direction:column;padding:12px 12px 12px 12px;
  border:1px solid var(--rule);border-radius:10px;background:var(--bg);}
.steps3 li::before{content:counter(s,arabic-indic);width:30px;height:30px;border-radius:50%;background:var(--brand);
  color:var(--on-brand);display:flex;align-items:center;justify-content:center;font-weight:800;margin-bottom:6px;}
.steps3 span,.trust span,.tools span{color:var(--ink-2);font-size:.9rem;}
.trust,.tools{list-style:none;margin:0;padding:0;display:grid;gap:10px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
.trust li{display:flex;flex-direction:column;padding:12px;border-radius:10px;background:var(--ok-soft);}
.trust b{color:var(--ok);}
.tools a{display:flex;flex-direction:column;height:100%;padding:12px;border:1px solid var(--rule);border-radius:10px;
  text-decoration:none;color:var(--ink);background:var(--bg);}
.tools a:hover{border-color:var(--brand);}
.tools span.en{text-align:start;}
details{border-top:1px solid var(--rule);padding:10px 0;}
details:first-of-type{border-top:0;}
summary{cursor:pointer;font-weight:700;}
details p{margin:8px 0 0;color:var(--ink-2);}
.seo-foot p{margin:4px 0;}

.svcgrid,.steps3,.trust,.tools,.facts dl{min-width:0;}
.svcgrid{grid-template-columns:repeat(auto-fill,minmax(min(230px,100%),1fr));}
.steps3,.trust,.tools{grid-template-columns:repeat(auto-fit,minmax(min(220px,100%),1fr));}
.facts dl{grid-template-columns:repeat(auto-fit,minmax(min(180px,100%),1fr));}
@media (max-width:460px){
  .unilist{grid-template-columns:minmax(0,1fr);}
  .depts{columns:1;}
}
