/* ============================================================
   ia_hub.css — هاب‌های بازطراحی فاز ۲ (/assets/، /assets/<هاب>/، /my/، /lab/)
   ============================================================
   فقط core/ia_hub.html این فایل را لود می‌کند. کاشی، سرتیتر گروه و نشان‌ها از components.css
   (بخش ۱۴، همان کاشی هاب /app/) می‌آیند؛ این‌جا فقط چیدمان صفحه. هیچ رنگ ثابتی نیست؛ فقط
   var() توکن‌ها. نقطه‌شکست: ۶۴۰.
   ============================================================ */

body.pg-iahub .hub-page{
  max-width:var(--nav-max);
  margin:0 auto;
  padding:var(--sp-8) var(--sp-6) var(--sp-16);
}

/* پیوند بازگشت به همهٔ بازارها */
body.pg-iahub .crumb{ margin:0 0 var(--sp-5); }
body.pg-iahub .crumb a{ display:inline-flex; align-items:center; gap:6px; font-weight:600; }
body.pg-iahub .crumb .ico{ flex:0 0 auto; }

/* سرتیتر هاب */
body.pg-iahub .pg-head{ margin:0 0 var(--sp-8); }
body.pg-iahub .pg-head h1{
  display:flex;
  align-items:center;
  gap:var(--sp-3);
  margin:0;
  color:var(--text-1);
  font-size:clamp(23px, 3vw, 30px);
  font-weight:800;
  line-height:1.6;
}
body.pg-iahub .pg-ic{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  width:44px; height:44px;
  border-radius:var(--r-md);
  background:var(--card2);
  border:1px solid var(--border);
  color:var(--text-2);
}
body.pg-iahub .pg-lead{
  margin:var(--sp-2) 0 0;
  color:var(--text-2);
  font-size:var(--fs-3);
  line-height:var(--lh-body);
  max-width:72ch;
}

/* نشان قفل گوشهٔ کاشی؛ اگر جا نشد زیر عنوان، نه روی آیکون */
body.pg-iahub .tile .badges{
  flex-wrap:wrap;
  justify-content:flex-end;
  max-width:calc(100% - 40px - var(--sp-5) * 2 - var(--sp-2));
}

/* کارت‌های فهرست /assets/: سه ستون، شمار ابزار و گروه‌ها زیر توضیح */
body.pg-iahub .hub-cards{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
body.pg-iahub .hub-meta{
  display:block;
  margin-top:var(--sp-2);
  color:var(--text-3);
  font-size:var(--fs-2);
  line-height:var(--lh-ui);
}

/* پیوند «ابزارهای کمّی در آزمایشگاه» ته هاب رمزارز و کامودیتی */
body.pg-iahub .hub-more{ margin:var(--sp-6) 0 0; font-size:var(--fs-3); }
body.pg-iahub .hub-more a{ font-weight:600; }

@media (max-width:960px){
  body.pg-iahub .hub-cards{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width:640px){
  body.pg-iahub .hub-page{ padding:var(--sp-5) var(--sp-4) var(--sp-12); }
  body.pg-iahub .pg-head{ margin-bottom:var(--sp-6); }
  body.pg-iahub .pg-ic{ width:40px; height:40px; }
  body.pg-iahub .tile .badges{ max-width:none; justify-content:flex-start; }
  body.pg-iahub .hub-cards{ grid-template-columns:minmax(0, 1fr); }
  body.pg-iahub .tile .hub-meta{ grid-column:2; }
}
