/*
 * «أطلس» — النظام البصري للمنصة الوطنية للتطوع (0.12).
 *
 * الفكرة: ليل ما قبل الفجر وشمس تشرق من نجوم الخاتم المغربي، كما تشرق في الشعار.
 * الجرأة في مكان واحد فقط (شروق الواجهة)، وكل ما عداه أبيض جيري هادئ ومنضبط.
 *
 * الألوان (الأدوار في DESIGN-AR.md):
 *   الليل     #0A2A55  اللون الأساسي: العناوين، الواجهة، التذييل، الأزرار الرئيسية
 *   الليل العميق #061B3A  التذييل وعمق الواجهة
 *   الأزرق    #1F5FBF  التفاعل: الروابط، التركيز، الحالة النشطة
 *   الشمس     #F5B301  اللمسة: الشروق، الأرقام على الداكن، الشارات الذهبية — لا يُستعمل نصاً على الأبيض
 *   الزليج    #1F7A4C  النجاح والتوثيق
 *   الجير     #F3F5F8  الخلفية الثانوية (جدران المدن البيضاء المائلة إلى الزرقة)
 *
 * الخطوط: Noto Kufi Arabic للعناوين (خط كوفي هندسي، أقرب إلى نقوش العمارة المغربية)،
 *         IBM Plex Sans Arabic للنصوص والواجهات (مقروء جداً في الأحجام الصغيرة).
 */

/* ---------------------------------------------------------------- الرموز */
.jsr {
	--night: #0A2A55; --night-2: #061B3A; --blue: #1F5FBF; --blue-2: #174C9A; --sun: #F5B301; --sun-soft: #FFF4CF; --zellige: #1F7A4C; --flag: #C8231E;
	--ink: #0A2A55; --ink-2: #2A3442; --muted: #5F6B7A; --line: #DDE2EA; --hair: #CBD3DE; --soft: #F3F5F8; --card: #FFFFFF;
	--accent: #1F5FBF; --accent-2: #174C9A; --mint: #F5B301; --accent-soft: #E8F0FB; --gold: #8A6200; --gold-soft: #FFF4CF;
	--font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
	--font-text: "IBM Plex Sans Arabic", system-ui, sans-serif;
	--r-lg: 28px; --r: 16px; --r-sm: 10px;
	--lift: 0 1px 0 rgba(10,42,85,.04), 0 18px 40px -24px rgba(10,42,85,.35);
	font-family: var(--font-text); font-size: 17px; line-height: 1.75; color: var(--ink-2);
}
@media (prefers-color-scheme: dark) {
	.jsr { --ink: #EEF2F7; --ink-2: #C9D2DE; --muted: #8E9AAB; --line: #1E3354; --hair: #2A4268; --soft: #0B1A30; --card: #10233F; --accent: #F5B301; --accent-2: #FFC933; --accent-soft: #1A2E4D; background: #061325; }
	.jsr-body { background: #061325; }
}
.jsr h1, .jsr h2, .jsr h3, .jsr-display, .jsr-headline, .jsr-title, .jsr-page__title { font-family: var(--font-display); color: var(--ink); letter-spacing: 0; }
.jsr-display { font-size: clamp(2.6rem, 7vw, 5.4rem); line-height: 1.22; font-weight: 800; }
.jsr-headline { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.3; font-weight: 700; }
.jsr-title { font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.35; font-weight: 700; }
.jsr-sub { font-size: clamp(1.02rem, 1.6vw, 1.2rem); line-height: 1.8; color: var(--muted); max-width: 46ch; }
.jsr-kicker { font-family: var(--font-text); font-weight: 600; font-size: .95rem; color: var(--accent); }
.jsr :focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ---------------------------------------------------------------- الأزرار */
.jsr-pill { font-family: var(--font-text); font-weight: 600; background: var(--night); color: #fff !important; border-radius: 12px; min-height: 48px; padding: 0 26px; }
.jsr-pill:hover { background: var(--blue); }
.jsr-pill--light { background: #fff; color: var(--night) !important; }
.jsr-pill--light:hover { background: var(--sun); color: var(--night) !important; }
.jsr-pill--ghost { background: transparent; color: var(--blue) !important; box-shadow: inset 0 0 0 1.5px currentColor; }
.jsr-pill--ghost:hover { background: var(--accent-soft); }
.jsr-more { font-weight: 600; color: var(--blue) !important; }
@media (prefers-color-scheme: dark) { .jsr-pill { background: var(--sun); color: var(--night) !important; } .jsr-pill:hover { background: #fff; } }

/* ---------------------------------------------------------------- الرأس */
.jsr-top { background: color-mix(in srgb, #fff 88%, transparent); border-bottom: 1px solid var(--line); }
.jsr-top__in { height: 64px; max-width: 1200px; }
.jsr-nav a { font-size: .9rem; color: var(--ink-2); opacity: 1; padding: 8px 12px; border-radius: 8px; position: relative; }
.jsr-nav a:hover { color: var(--night); background: var(--soft); }
.jsr-nav a[aria-current="page"] { color: var(--night); font-weight: 600; }
.jsr-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: -13px; height: 3px; border-radius: 3px 3px 0 0; background: var(--sun); }
.jsr-brand__name { font-family: var(--font-display); color: var(--night); font-size: 1.05rem; }
.jsr-brand__name small { font-family: var(--font-text); color: var(--blue); font-weight: 500; }
.jsr-btn { font-family: var(--font-text); border-radius: 10px; min-height: 38px; font-size: .88rem; }
.jsr-btn--dark { background: var(--night) !important; color: #fff !important; }
.jsr-btn--dark:hover { background: var(--blue) !important; opacity: 1; }
.jsr-acct summary { border-radius: 12px; }
.jsr-acct__av { background: var(--night) !important; color: var(--sun); font-family: var(--font-display); }
.jsr-menu__panel { top: calc(var(--wp-admin--admin-bar--height, 0px) + 64px); }
.jsr-menu__panel a { font-family: var(--font-display); font-size: 1.35rem; }
@media (prefers-color-scheme: dark) {
	.jsr-top { background: color-mix(in srgb, #061325 86%, transparent); }
	.jsr-brand__name { color: #fff; } .jsr-brand__name small { color: var(--sun); }
	.jsr-nav a[aria-current="page"], .jsr-nav a:hover { color: #fff; }
	.jsr-btn--dark { background: var(--sun) !important; color: var(--night) !important; }
}
.jsr-wrap { max-width: 1200px; }

/* ---------------------------------------------------------------- الواجهة: الشروق */
.jsr-tile.atl-hero { position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(120% 90% at 50% 100%, #123A70 0%, var(--night) 45%, var(--night-2) 100%); color: #fff; padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 48px) 0 !important; text-align: center; }
.atl-hero > * { position: relative; z-index: 1; }
.atl-sun { position: absolute !important; z-index: 0 !important; inset-inline: 0; bottom: 0; width: 100%; height: 78%; margin: 0 !important; pointer-events: none; }
.atl-sun__rays line { opacity: .32; }
.atl-sun__star { transform-origin: 600px 250px; transform-box: view-box; }
.atl-hero__copy { max-width: 880px; margin-inline: auto; }
.atl-hero .jsr-display { color: #fff; text-align: center !important; text-wrap: balance; }
.atl-hero .jsr-sub { color: rgba(255,255,255,.78); text-align: center !important; margin: 18px auto 30px; max-width: 54ch; }
.atl-hero .jsr-find { max-width: 760px; margin-inline: auto; background: #fff; border: 0; border-radius: 16px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.55); padding: 8px 8px 8px 8px; }
.atl-hero .jsr-find input, .atl-hero .jsr-find select { color: #0A2A55; font-family: var(--font-text); }
.atl-hero .jsr-find svg { color: var(--muted); }
.atl-hero .jsr-find button { width: auto; height: 52px; border-radius: 12px; padding: 0 26px; background: var(--sun); color: var(--night); font: 700 1rem var(--font-text); }
.atl-hero .jsr-find button:hover { background: #FFC933; }
.atl-hero .jsr-chips { justify-content: center; margin-top: 18px; }
.atl-hero .jsr-chips a { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff !important; border-radius: 999px; }
.atl-hero .jsr-chips a:hover { background: rgba(245,179,1,.18); border-color: var(--sun); }
.atl-hero .jsr-stage { margin-top: clamp(40px, 6vw, 72px) !important; }
.atl-hero .jsr-stage::before { display: none; }
.atl-hero .jsr-phone { box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 -20px 80px -10px rgba(245,179,1,.45), 0 40px 80px -30px rgba(0,0,0,.6); }
.atl-hero .jsr-phone__eyebrow { color: var(--blue); }
.atl-hero .jsr-phone__title { font-family: var(--font-display); color: var(--night); }
@media (prefers-reduced-motion: no-preference) {
	.atl-sun { animation: atl-rise 1.6s cubic-bezier(.16,1,.3,1) both; }
	.atl-sun__star { animation: atl-star 1.6s .5s cubic-bezier(.16,1,.3,1) both; }
	@keyframes atl-rise { from { transform: translateY(18%); opacity: 0; } to { transform: none; opacity: 1; } }
	@keyframes atl-star { from { opacity: 0; transform: scale(.4) rotate(-45deg); } to { opacity: 1; transform: none; } }
}
@media (max-width: 640px) {
	.atl-hero .jsr-find { flex-wrap: wrap; }
	.atl-hero .jsr-find button { flex: 1 1 100%; }
	.atl-sun { height: 60%; }
}

/* ---------------------------------------------------------------- الأرقام */
.atl-figures { background: var(--card); border-bottom: 1px solid var(--line); }
.atl-figures .jsr-numbers { max-width: 1200px; margin: 0 auto !important; padding: clamp(28px, 4vw, 44px) clamp(20px, 4vw, 48px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.atl-figures .jsr-numbers > div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 12px; border-inline-start: 1px solid var(--line); }
.atl-figures .jsr-numbers > div:first-child { border-inline-start: 0; }
.atl-figures dd { margin: 0; font: 800 clamp(2rem, 4.4vw, 3.2rem)/1.1 var(--font-display); color: var(--night); font-variant-numeric: tabular-nums; }
.atl-figures dt { font-size: .92rem; color: var(--muted); text-align: center; }
@media (max-width: 640px) { .atl-figures .jsr-numbers { grid-template-columns: repeat(2, 1fr); row-gap: 18px; } .atl-figures .jsr-numbers > div:nth-child(3) { border-inline-start: 0; } }
@media (prefers-color-scheme: dark) { .atl-figures dd { color: var(--sun); } }

/* ---------------------------------------------------------------- اللوحات */
.jsr-tile { background: var(--card); }
.jsr-tile--soft { background: var(--soft); }
.jsr-tile--dark { background: var(--night); color: #E7EDF6; --muted: #A9B7CC; --accent: var(--sun); }
.jsr-tile--dark .jsr-headline, .jsr-tile--dark .jsr-title, .jsr-tile--dark h2, .jsr-tile--dark h3 { color: #fff; }
.jsr-tile--dark .jsr-kicker { color: var(--sun); }
.jsr-tile--dark .jsr-more { color: var(--sun) !important; }

/* بطاقات الفرص */
.jsr-rail__head { max-width: 1200px; }
.jsr-card { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); box-shadow: none; transition: border-color .2s, transform .2s; }
.jsr-card:hover { border-color: var(--blue); transform: translateY(-2px); }
.jsr-card__kind { color: var(--blue); font-weight: 600; }
.jsr-card__title { font-family: var(--font-display); color: var(--night); line-height: 1.5; }
.jsr-card__date strong { font-family: var(--font-display); color: var(--night); }
.jsr-card.is-inst { border-top: 3px solid var(--sun); }
@media (prefers-color-scheme: dark) { .jsr-card__title, .jsr-card__date strong { color: #fff; } }

/* الخطوات: رقم كوفي كبير بلون الشمس على الليل */
#jsr-how { background: var(--soft); }
.jsr-steps__n { display: inline-grid !important; place-items: center; width: 64px; height: 64px; font: 800 1.9rem/1 var(--font-display) !important; background: var(--night); color: var(--sun) !important; border-radius: 18px; }
.jsr-seg { border-radius: 14px; }
.jsr-seg [aria-selected="true"] { background: var(--night) !important; color: #fff !important; }

/* الشهادة: ورقة بيضاء وختم نجمة ذهبي */
.jsr-cert__paper { border-radius: 6px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.6); }
.jsr-cert__brand { color: var(--blue) !important; font-family: var(--font-display); }
.jsr-cert__title { font-family: var(--font-display); color: var(--night) !important; }
.jsr-cert__paper::after { content: ""; position: absolute; inset-inline-start: 24px; bottom: 24px; width: 64px; height: 64px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg fill='%23F5B301'%3E%3Crect x='9' y='9' width='26' height='26'/%3E%3Crect x='9' y='9' width='26' height='26' transform='rotate(45 22 22)'/%3E%3C/g%3E%3Ccircle cx='22' cy='22' r='8' fill='none' stroke='%230A2A55' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat; }
.jsr-cert__paper { position: relative; }

/* الجمعيات والمؤسسات */
.jsr-duo .jsr-tile--soft { background: var(--soft); }
.jsr-duo .jsr-tile--dark { background: linear-gradient(160deg, var(--night) 0%, var(--night-2) 100%); }
.jsr-mini, .jsr-stack__card { border-radius: 14px; }
.jsr-mini__badge { background: #E5F3EC !important; color: var(--zellige) !important; }

/* الخريطة */
.jsr-tile--map { background: var(--card) !important; }
.jsr-map__fig path { fill: var(--soft) !important; stroke: var(--hair) !important; }
.jsr-map__fig circle { fill: var(--night) !important; stroke: #fff !important; }
.jsr-map__fig circle.z { fill: var(--hair) !important; }
@media (prefers-color-scheme: dark) { .jsr-map__fig circle { fill: var(--sun) !important; stroke: var(--night) !important; } .jsr-map__fig path { fill: #0E2240 !important; } }

/* السفراء: الشمس تعود هنا بهدوء */
.jsr-tile--amb { background: var(--sun-soft) !important; color: var(--night); }
.jsr-tile--amb .jsr-headline { color: var(--night); }
.jsr-tile--amb .jsr-kicker { color: var(--gold); }
.jsr-tile--amb .jsr-sub { color: #4A4A3A; }
.jsr-tile--amb .jsr-pill { background: var(--night); color: #fff !important; }
@media (prefers-color-scheme: dark) { .jsr-tile--amb { background: #2A2410 !important; } .jsr-tile--amb .jsr-headline { color: #fff; } .jsr-tile--amb .jsr-sub { color: #D9CFA8; } .jsr-tile--amb .jsr-kicker { color: var(--sun); } }

/* شعارات الجمعيات */
.jsr-tile--numbers .jsr-title { text-align: center !important; }
.jsr-logos { margin-top: 32px !important; }
.jsr-logos a { border-radius: 16px; box-shadow: 0 0 0 1px var(--line); }

/* الدعوة الأخيرة */
.jsr-tile--end { background: var(--night) !important; }
.jsr-tile--end .jsr-headline { color: #fff; }
.jsr-tile--end .jsr-more { color: var(--sun) !important; }
.jsr-tile--end .jsr-pill { background: var(--sun); color: var(--night) !important; }

/* ---------------------------------------------------------------- التذييل */
.jsr-foot { background: var(--night-2) !important; color: #B9C6D8; border-top: 0; }
.jsr-foot h3 { color: #fff; font-family: var(--font-display); }
.jsr-foot a { color: #DCE4EF !important; }
.jsr-foot a:hover { color: var(--sun) !important; }
.jsr-foot p, .jsr-foot__legal { color: #8FA0B8; }
.jsr-foot__legal { border-top-color: rgba(255,255,255,.1) !important; }
.jsr-brand--full { background: #fff; border-radius: 18px; padding: 10px 14px; display: inline-block; }

/* ---------------------------------------------------------------- صفحات المنصة */
.jsr-page { background: var(--soft); }
.jsr-page__title { font-weight: 800; color: var(--night); }
.jsr-crumbs a { color: var(--blue); }
.jsr .albs-cs {
	--brand-navy: #0A2A55; --brand-navy-2: #123A70; --headline: #0A2A55; --ink: #2A3442; --muted: #5F6B7A; --line: #DDE2EA;
	--surface-card: #FFFFFF; --surface-paper: #F3F5F8; --blue: #1F5FBF; --blue-on-navy: #F5B301; --maroc-green: #1F7A4C;
	--font-sans: "IBM Plex Sans Arabic", system-ui, sans-serif; --radius-md: 12px; --radius-lg: 16px;
	--cs-pill-bg: #E8F0FB; --cs-pill-ink: #174C9A; --cs-gold: #8A6200; --cs-accent: #1F5FBF; --cs-btn: #0A2A55; --cs-btn-hover: #1F5FBF;
	font-family: var(--font-sans);
}
@media (prefers-color-scheme: dark) {
	.jsr .albs-cs { --brand-navy: #10233F; --headline: #EEF2F7; --ink: #C9D2DE; --muted: #8E9AAB; --line: #1E3354; --surface-card: #10233F; --surface-paper: #0B1A30; --cs-pill-bg: #1A2E4D; --cs-pill-ink: #FFD25C; --cs-accent: #F5B301; --cs-btn: #F5B301; --cs-btn-hover: #FFC933; }
}
.jsr .albs-cs h2, .jsr .albs-cs h3, .jsr .albs-cs h4, .jsr .albs-cs .albs-cs-card__title, .jsr .albs-cs .albs-cs-studio-title { font-family: var(--font-display); }
.jsr .albs-cs h2:not(.albs-cs-hero__title):not(.albs-cs-cert__title):not(.albs-cs-studio-title)::after { background: var(--sun) !important; }
.jsr .albs-cs .albs-cs-btn:not(.albs-cs-btn--ghost) { border-radius: 12px; }
.jsr .albs-cs .albs-cs-btn--ghost { border-radius: 12px; }
.jsr .albs-cs .albs-cs-hero { background: radial-gradient(120% 120% at 50% 110%, #123A70 0%, var(--night) 55%, var(--night-2) 100%) !important; }
.jsr .albs-cs .albs-cs-hero .albs-cs-hero__search .albs-cs-btn { background: var(--sun) !important; border-color: var(--sun) !important; color: var(--night) !important; }
.jsr .albs-cs .albs-cs-hero__title { font-family: var(--font-display); }
.jsr .albs-cs-kpis dd, .jsr .albs-cs-stats--4 dd, .jsr .albs-cs-spacehead dd { font-family: var(--font-display); }
.jsr .albs-cs-passport, .jsr .albs-cs-amb__hero, .jsr .albs-cs-amb__card { background: radial-gradient(120% 140% at 0% 100%, #123A70 0%, var(--night) 50%, var(--night-2) 100%); }
.jsr .albs-cs-tabs--pills a.is-active { background: var(--night); color: #fff; border-color: var(--night); }
@media (prefers-color-scheme: dark) { .jsr .albs-cs-tabs--pills a.is-active { background: var(--sun); color: var(--night); border-color: var(--sun); } }
.jsr .albs-cs-badge--verified { background: #E5F3EC; color: var(--zellige); }
.jsr .albs-cs-map__node circle { fill: var(--night); }
.jsr .albs-cs-map__node.is-prov circle { fill: var(--sun); }
.jsr .albs-cs-map__node.is-prov text { fill: var(--night); }
.jsr .albs-cs-cols i { background: var(--night); }
.jsr .albs-cs-steps li.is-done::before, .jsr .albs-cs-steps li.is-now::before { background: var(--zellige); }
.jsr .albs-dir__card { border-radius: 20px; }
.jsr-tile--amb { padding-bottom: clamp(56px, 8vw, 96px) !important; }
.jsr-tile--map .jsr-headline { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.jsr-cert__paper::after { bottom: auto; top: 22px; inset-inline-start: 22px; width: 48px; height: 48px; }
.jsr-rail { padding-inline: max(clamp(20px, 4vw, 48px), calc((100% - 1200px) / 2 + 24px)) !important; }
.jsr .albs-cs-hero__compass.atl-khatam { stroke: rgba(245,179,1,.45); }
.jsr .albs-cs-hero__compass.atl-khatam .n { fill: #F5B301; }
.jsr .albs-cs .albs-cs-hero__title { color: #fff; }
.jsr .albs-cs-passport h2, .jsr .albs-cs-amb__card h2, .jsr .albs-cs-amb__hero h2, .jsr .albs-cs-hero h2 { color: #fff; }
.jsr-brand--full .jsr-logo-full { width: 168px; }
.jsr .albs-cs-kpis + .albs-cs-panel, .jsr .albs-cs-kpis + .albs-cs-note { margin-top: 16px; }

/* ======================================================================
 * 0.12.1 — دليل الجمعيات والمؤسسات: صفحة قائمة بذاتها، نظيفة.
 * ====================================================================== */
.atl-dir__switch { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--card); box-shadow: 0 0 0 1px var(--line); margin-bottom: 28px; }
.atl-dir__switch a { padding: 8px 16px; border-radius: 10px; color: var(--ink-2) !important; text-decoration: none; font-size: .92rem; font-weight: 500; }
.atl-dir__switch a:hover { background: var(--soft); }
.atl-dir__switch a[aria-current="page"] { background: var(--night); color: #fff !important; }
.atl-dir__hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(28px, 5vw, 56px); border-radius: 28px; background: var(--card); box-shadow: 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.atl-dir__hero::before { content: ""; position: absolute; inset-inline-end: -60px; bottom: -60px; width: 300px; height: 300px; opacity: .07; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 44'%3E%3Cg fill='none' stroke='%230A2A55' stroke-width='1.2'%3E%3Crect x='9' y='9' width='26' height='26'/%3E%3Crect x='9' y='9' width='26' height='26' transform='rotate(45 22 22)'/%3E%3C/g%3E%3C/svg%3E") 0 0/44px; }
.jsr .albs-cs .atl-dir__title { margin: 0 !important; padding: 0 !important; border: 0 !important; font: 800 clamp(2rem, 4.6vw, 3.4rem)/1.3 var(--font-display); color: var(--night); text-wrap: balance; }
.jsr .albs-cs .atl-dir__title::after { display: none !important; }
.atl-dir__lead { margin: 16px 0 26px; max-width: 50ch; font-size: 1.05rem; line-height: 1.85; color: var(--muted); }
.atl-dir__search { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 6px; padding-inline-start: 16px; border-radius: 16px; background: var(--soft); box-shadow: inset 0 0 0 1px var(--line); max-width: 620px; }
.atl-dir__search:focus-within { box-shadow: inset 0 0 0 2px var(--blue); background: #fff; }
.atl-dir__search svg { flex: none; color: var(--muted); }
.atl-dir__search input, .atl-dir__search select { flex: 1 1 auto; min-width: 0; min-height: 48px; border: 0; background: transparent; font: inherit; color: var(--night); outline: none; }
.atl-dir__search select { flex: 0 1 190px; border-inline-start: 1px solid var(--line); padding-inline: 12px; }
.atl-dir__search button { flex: none; min-height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--night); color: #fff; font: 600 .98rem var(--font-text); cursor: pointer; }
.atl-dir__search button:hover { background: var(--blue); }
.atl-dir__mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.atl-dir__mosaic li:nth-child(3n+2) { transform: translateY(22px); }
.atl-dir__mosaic a { display: grid; place-items: center; aspect-ratio: 1; border-radius: 24px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 36px -22px color-mix(in srgb, var(--org, #0A2A55) 60%, rgba(0,0,0,.4)); transition: transform .4s cubic-bezier(.16,1,.3,1); }
.atl-dir__mosaic a:hover { transform: translateY(-4px); }
.atl-dir__mosaic img { width: 74%; height: 74%; object-fit: contain; }
.atl-dir__count { display: flex; flex-direction: column; align-items: center; justify-content: center; aspect-ratio: 1.2; border-radius: 24px; background: var(--night); color: #fff; }
.atl-dir__count strong { font: 800 clamp(3.4rem, 8vw, 5.6rem)/1 var(--font-display); color: var(--sun); }
.atl-dir__count span { margin-top: 8px; color: #C9D4E4; }
.atl-dir__facts { display: grid; grid-template-columns: repeat(4, 1fr); margin: 22px 0 8px; padding: 0; }
.atl-dir__facts > div { display: flex; flex-direction: column-reverse; padding: 6px 18px; border-inline-start: 1px solid var(--line); }
.atl-dir__facts > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.atl-dir__facts dd { margin: 0; font: 800 clamp(1.6rem, 3vw, 2.2rem)/1.15 var(--font-display); color: var(--night); }
.atl-dir__facts dt { font-size: .86rem; color: var(--muted); }
.atl-dir__domains { display: flex; gap: 8px; overflow-x: auto; padding: 18px 0 6px; margin-bottom: 18px; scrollbar-width: none; }
.atl-dir__domains::-webkit-scrollbar { display: none; }
.atl-dir__domains a { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2) !important; text-decoration: none; font-size: .9rem; white-space: nowrap; }
.atl-dir__domains a small { color: var(--muted); margin-inline-start: 2px; }
.atl-dir__domains a:hover { box-shadow: inset 0 0 0 1px var(--blue); }
.atl-dir__domains a[aria-current="true"] { background: var(--night); color: #fff !important; box-shadow: none; }
.atl-dir__domains a[aria-current="true"] small { color: var(--sun); }
.atl-dir .albs-dir { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px; }
.atl-dir .albs-dir__card { border-radius: 22px; box-shadow: 0 0 0 1px var(--line); }
.atl-dir .albs-dir__stage { height: 190px; }
.atl-dir .albs-dir__logo { width: 120px; height: 120px; border-radius: 28px; }
.albs-dir__doms { margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.albs-dir__nums { display: flex; gap: 0; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.albs-dir__nums > div { flex: 1; display: flex; flex-direction: column-reverse; padding-inline: 10px; border-inline-start: 1px solid var(--line); }
.albs-dir__nums > div:first-child { border-inline-start: 0; padding-inline-start: 0; }
.albs-dir__nums dd { margin: 0; font: 700 1.25rem/1.2 var(--font-display); color: var(--night); }
.albs-dir__nums dt { font-size: .76rem; color: var(--muted); }
.atl-dir__join { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 44px; padding: clamp(24px, 4vw, 40px); border-radius: 26px; background: radial-gradient(120% 160% at 0% 100%, #123A70 0%, var(--night) 55%, var(--night-2) 100%); color: #C9D4E4; }
.jsr .albs-cs .atl-dir__join h2 { margin: 0 0 6px !important; padding: 0 !important; border: 0 !important; color: #fff; font: 700 clamp(1.4rem, 2.6vw, 1.9rem)/1.3 var(--font-display); }
.jsr .albs-cs .atl-dir__join h2::after { display: none !important; }
.atl-dir__join p { margin: 0; max-width: 60ch; }
.jsr .albs-cs .atl-dir__join .albs-cs-btn { flex: none; background: var(--sun) !important; border-color: var(--sun) !important; color: var(--night) !important; min-height: 50px; padding-inline: 26px; font-weight: 700; }
@media (max-width: 860px) {
	.atl-dir__hero { grid-template-columns: 1fr; }
	.atl-dir__mosaic { grid-template-columns: repeat(6, 1fr); gap: 8px; }
	.atl-dir__mosaic li:nth-child(3n+2) { transform: none; }
	.atl-dir__mosaic a { border-radius: 14px; }
	.atl-dir__count { aspect-ratio: auto; padding: 22px; flex-direction: row; gap: 12px; }
	.atl-dir__count span { margin: 0; }
	.atl-dir__facts { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
	.atl-dir__facts > div:nth-child(3) { border-inline-start: 0; padding-inline-start: 0; }
	.atl-dir__join { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
	.atl-dir__search { flex-wrap: wrap; padding: 8px; }
	.atl-dir__search select { flex: 1 1 100%; border-inline-start: 0; border-top: 1px solid var(--line); padding: 0 4px; }
	.atl-dir__search button { flex: 1 1 100%; }
}
@media (prefers-color-scheme: dark) {
	.jsr .albs-cs .atl-dir__title, .atl-dir__facts dd, .albs-dir__nums dd { color: #fff; }
	.atl-dir__search { background: #0B1A30; }
	.atl-dir__search:focus-within { background: #0B1A30; }
	.atl-dir__search input, .atl-dir__search select { color: #fff; }
	.atl-dir__search button, .atl-dir__switch a[aria-current="page"], .atl-dir__domains a[aria-current="true"] { background: var(--sun); color: var(--night) !important; }
	.atl-dir__hero::before { filter: invert(1); }
}
.jsr .albs-cs h2.atl-dir__title { font: 800 clamp(2.2rem, 4.8vw, 3.6rem)/1.28 var(--font-display) !important; }
.jsr .albs-cs h2.atl-dir__title + .atl-dir__lead { margin-top: 18px; }
.atl-dir__mosaic a { box-shadow: 0 0 0 1px var(--line), 0 10px 24px -16px rgba(10,42,85,.35); }
.jsr .albs-cs .atl-dir__facts { margin: 26px 0 6px !important; }
.atl-dir__search select { flex: 0 0 210px; }
.atl-dir__mosaic a { overflow: hidden; padding: 14%; }
.atl-dir__mosaic a img { width: 100% !important; height: 100% !important; max-width: none !important; object-fit: contain; }
.atl-dir__hero > * { min-width: 0; }
.atl-dir__search { box-sizing: border-box; width: 100%; }
@media (max-width: 560px) { .atl-dir__hero { padding: 24px 18px; } .atl-dir__search select { max-width: 100%; } }
@media (max-width: 560px) { .atl-dir__search svg { display: none; } .atl-dir__search select { flex: 1 1 100%; } }

/* عناصر تضيفها إضافات الجريدة في أسفل كل صفحة (تابعنا وشارك، الشريط الإخباري…):
   صفحات المنصة لا تعرض إلا عناصرها هي. */
.jsr-body > :not(.jsr):not(#wpadminbar):not(script):not(style):not(link):not(template):not(noscript) { display: none !important; }
