/* تبويبات «إنجازات الثانوية الحادية عشرة» و«كفاءات نفخر بها» و«إحصائيات» — بادئة ac- */

/* ---------- التنقل داخل الصفحة ---------- */
.ac-jumps { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); margin-top: 8px; }
.ac-jump { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; color: var(--ink); font-weight: 600; font-size: .92rem; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.ac-jump:hover { border-color: var(--brand-300); box-shadow: var(--shadow-sm); color: var(--brand-800); }
.ac-jump-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); }
.ac-jump-label { flex: 1; min-width: 0; line-height: 1.5; }

/* ---------- شبكة البطاقات ---------- */
.ac-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.ac-grid-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ac-card {
  display: flex; flex-direction: column; gap: 10px; padding: 20px 18px 16px; min-width: 0;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.ac-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-200); }
.ac-card:hover .ac-icon { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.ac-card-top { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.ac-icon {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px;
  background: linear-gradient(145deg, var(--brand-50), var(--brand-100)); color: var(--brand-700);
  border: 1px solid var(--brand-200); transition: background .25s, color .25s, border-color .25s;
}
.ac-head { flex: 1; min-width: 0; display: grid; gap: 4px; }
.ac-title { font-size: 1rem; font-weight: 700; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; margin: 0; }
.ac-desc { font-size: .88rem; color: var(--ink-3); line-height: 1.8; margin: 0; overflow-wrap: anywhere; }
.ac-meta { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--ink-4); line-height: 1.6; margin: 0; }
.ac-meta .i { flex: none; }
.ac-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ac-btn { gap: 6px; }

/* شهادات رسمية: إبراز ذهبي هادئ */
.ac-cert { border-top: 4px solid #c9a227; background: linear-gradient(180deg, #fffcf2, #fff 90px); }
.ac-cert .ac-icon { background: linear-gradient(145deg, #fff6d9, #fdeeb8); color: #8a6a0c; border-color: #f0dc9a; }
.ac-cert:hover .ac-icon { background: #b18a17; border-color: #b18a17; color: #fff; }
.ac-official { background: #fff6d9; color: #7a5d08; border-color: #ecd68f; }

/* شارة «مشاركة» */
.ac-part { background: var(--brand-50); color: var(--brand-700); border-color: var(--brand-200); }

/* ---------- كفاءات ---------- */
.ac-person { text-align: center; align-items: center; }
.ac-person .ac-icon { width: 58px; height: 58px; border-radius: 50%; }
.ac-person .ac-foot { justify-content: center; }
.ac-kv { display: grid; gap: 4px; font-size: .88rem; color: var(--ink-2); line-height: 1.7; margin: 0; }
.ac-kv b { color: var(--ink); font-weight: 600; }

.ac-names { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); counter-reset: acn; list-style: none; padding: 0; margin: 0; }
.ac-name { display: flex; align-items: center; gap: 10px; padding: 12px 14px; min-width: 0; font-weight: 600; color: var(--ink); }
.ac-name::before {
  counter-increment: acn; content: counter(acn); flex: none; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%; background: var(--brand-600); color: #fff; font-size: .82rem; font-weight: 700;
}
.ac-name span { min-width: 0; overflow-wrap: anywhere; }

/* بطاقة طالبة أو منسوبة: قائمة شهادات */
.ac-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ac-li { display: flex; align-items: flex-start; gap: 8px; padding: 9px 10px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); min-width: 0; flex-wrap: wrap; }
.ac-li-text { flex: 1 1 160px; min-width: 0; display: grid; gap: 2px; }
.ac-li-title { font-size: .88rem; font-weight: 600; color: var(--ink); line-height: 1.6; overflow-wrap: anywhere; }
.ac-li-sub { font-size: .78rem; color: var(--ink-4); line-height: 1.6; }
.ac-li-desc { font-size: .82rem; color: var(--ink-3); line-height: 1.7; }
.ac-li .btn { flex: none; }
.ac-count { font-size: .8rem; color: var(--ink-4); }

.ac-note { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; color: var(--ink-3); line-height: 1.8; margin: 0 0 16px; }
.ac-note .i { flex: none; margin-top: 4px; color: var(--brand-600); }

/* ---------- إحصائيات ---------- */
.ac-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.ac-stat { display: grid; gap: 10px; padding: 24px 20px; align-content: start; min-width: 0; border-top: 4px solid var(--brand-500); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ac-stat:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ac-stat-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ac-stat-value { font-size: clamp(2.2rem, 6vw, 2.9rem); font-weight: 700; line-height: 1.1; color: var(--brand-700); font-variant-numeric: tabular-nums; }
.ac-stat-label { font-size: .95rem; font-weight: 600; color: var(--ink); line-height: 1.7; margin: 0; overflow-wrap: anywhere; }
.ac-stat-src { font-size: .78rem; color: var(--ink-4); margin: 0; }

@media (max-width: 520px) {
  .ac-card { padding: 16px 14px 14px; }
  .ac-icon { width: 42px; height: 42px; border-radius: 13px; }
}

/* تصنيفان على بطاقة واحدة (دراسات عليا | مدرب معتمد)، وإشارات المدربات في قسم المدربات */
.ac-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; margin: 0; }
.ac-tags-sep { color: var(--ink-4); }
.ac-refs { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.ac-ref { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.ac-ref-name { display: inline-flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); }
.ac-ref-name .i { color: var(--brand-600); flex: none; }
.ac-ref-name strong { font-weight: 700; overflow-wrap: anywhere; }
.ac-ref .ac-tags { justify-content: flex-start; }
.ac-ref-go { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; font-size: .86rem; font-weight: 600; }
