/* QARAR Enterprise v26.3.44 — final first-pass visual cleanup.
 * One core typeface, balanced bilingual header, and one equal Community card system.
 */

/* 1) One core typeface for the site's basic UI and content. */
html,
body,
body :where(button,input,select,textarea) {
  font-family:'Tajawal',Arial,sans-serif;
}

body :where(h1,h2,h3,h4,h5,h6,p,li,a,button,input,select,textarea,label,small,strong,b,span) {
  font-family:inherit;
}

/* 2) Bilingual header: Arabic and English share the same visual hierarchy. */
.qarar-v7-header .qarar-header-brand-copy{
  align-items:flex-start!important;
  gap:3px!important;
}
.qarar-v7-header .qarar-header-brand-ar,
.qarar-v7-header .qarar-header-brand-en{
  font-family:'Tajawal',Arial,sans-serif!important;
  font-weight:800!important;
  line-height:1.28!important;
  letter-spacing:0!important;
  white-space:nowrap!important;
}
.qarar-v7-header .qarar-header-brand-ar{font-size:19px!important;}
.qarar-v7-header .qarar-header-brand-en{
  font-size:18px!important;
  color:rgba(255,255,255,.92)!important;
}
.qarar-v7-header.is-scrolled .qarar-header-brand-ar{font-size:17px!important;}
.qarar-v7-header.is-scrolled .qarar-header-brand-en{font-size:16px!important;}

/* Keep the lockup usable before the desktop header starts compressing. */
@media(max-width:1260px) and (min-width:1101px){
  .qarar-v7-header .qarar-header-brand-ar{font-size:16px!important;}
  .qarar-v7-header .qarar-header-brand-en{font-size:15px!important;}
}
@media(max-width:1100px){
  .qarar-v7-header .qarar-header-brand-ar{font-size:14px!important;line-height:1.22!important;white-space:normal!important;}
  .qarar-v7-header .qarar-header-brand-en{font-size:13px!important;line-height:1.22!important;white-space:normal!important;}
}
@media(max-width:620px){
  .qarar-v7-header .qarar-header-brand-ar{font-size:12.2px!important;}
  .qarar-v7-header .qarar-header-brand-en{font-size:11.2px!important;}
}
@media(max-width:430px){
  .qarar-v7-header .qarar-header-brand-ar{font-size:11.4px!important;}
  .qarar-v7-header .qarar-header-brand-en{font-size:10.4px!important;}
}

/* 3) Community: Board, Management and Researchers use exactly one card geometry.
 * No level gets a larger card, larger portrait, accent border or special height. */
body.page-template-page-community .community-group-section--board .org-level .org-people-grid,
body.page-template-page-community .community-group-section--management .org-level .org-people-grid,
body.page-template-page-community .community-group-section--researchers .org-level .org-people-grid{
  align-items:stretch!important;
  grid-auto-rows:1fr!important;
}
body.page-template-page-community .community-group-section--board .org-level .person-card,
body.page-template-page-community .community-group-section--management .org-level .person-card,
body.page-template-page-community .community-group-section--researchers .org-level .person-card{
  height:100%!important;
  min-height:0!important;
  max-width:none!important;
  margin:0!important;
  border:1px solid #dfe3e7!important;
  border-top:1px solid #dfe3e7!important;
  border-radius:12px!important;
  background:#fff!important;
  box-shadow:0 8px 24px rgba(17,24,39,.045)!important;
  transform:none!important;
  display:flex!important;
}
body.page-template-page-community .community-group-section--board .org-level .person-open,
body.page-template-page-community .community-group-section--management .org-level .person-open,
body.page-template-page-community .community-group-section--researchers .org-level .person-open{
  height:100%!important;
  display:flex!important;
  flex-direction:column!important;
  width:100%!important;
}
body.page-template-page-community .community-group-section--board .org-level .person-photo,
body.page-template-page-community .community-group-section--management .org-level .person-photo,
body.page-template-page-community .community-group-section--researchers .org-level .person-photo{
  flex:0 0 auto!important;
  width:min(170px,82%)!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  margin:0 auto 3px!important;
  border-radius:50%!important;
  border:1px solid #dfe3e7!important;
  box-shadow:0 7px 18px rgba(17,24,39,.08)!important;
}
body.page-template-page-community .community-group-section--board .org-level .person-info,
body.page-template-page-community .community-group-section--management .org-level .person-info,
body.page-template-page-community .community-group-section--researchers .org-level .person-info{
  flex:1 1 auto!important;
  min-height:0!important;
  text-align:center!important;
  padding:12px 2px 0!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
}
body.page-template-page-community .community-group-section--board .org-level .person-info strong,
body.page-template-page-community .community-group-section--management .org-level .person-info strong,
body.page-template-page-community .community-group-section--researchers .org-level .person-info strong{
  font-size:17px!important;
  line-height:1.55!important;
  min-height:calc(1.55em * 2)!important;
  display:block!important;
}
body.page-template-page-community .community-group-section--board .org-level .person-info small,
body.page-template-page-community .community-group-section--management .org-level .person-info small,
body.page-template-page-community .community-group-section--researchers .org-level .person-info small{
  font-size:12px!important;
  line-height:1.55!important;
  min-height:calc(1.55em * 2)!important;
  color:#6c7480!important;
}
body.page-template-page-community .community-group-section--board .org-level-1 .person-card,
body.page-template-page-community .community-group-section--management .org-level-1 .person-card{
  max-width:none!important;
  margin:0!important;
  border-top:1px solid #dfe3e7!important;
}
body.page-template-page-community .community-group-section--board .org-level-1 .person-photo,
body.page-template-page-community .community-group-section--management .org-level-1 .person-photo{
  width:min(170px,82%)!important;
}
body.page-template-page-community .community-group-section--board .org-level-1 .person-info strong,
body.page-template-page-community .community-group-section--management .org-level-1 .person-info strong{
  font-size:17px!important;
}
@media(max-width:1050px){
  body.page-template-page-community .community-group-section--board .org-level .org-people-grid,
  body.page-template-page-community .community-group-section--management .org-level .org-people-grid,
  body.page-template-page-community .community-group-section--researchers .org-level .org-people-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}
@media(max-width:780px){
  body.page-template-page-community .community-group-section--board .org-level .org-people-grid,
  body.page-template-page-community .community-group-section--management .org-level .org-people-grid,
  body.page-template-page-community .community-group-section--researchers .org-level .org-people-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:14px 10px!important;
  }
  body.page-template-page-community .community-group-section--board .org-level .person-card,
  body.page-template-page-community .community-group-section--management .org-level .person-card,
  body.page-template-page-community .community-group-section--researchers .org-level .person-card{
    padding:14px 8px 12px!important;
  }
  body.page-template-page-community .community-group-section--board .org-level .person-photo,
  body.page-template-page-community .community-group-section--management .org-level .person-photo,
  body.page-template-page-community .community-group-section--researchers .org-level .person-photo{
    width:min(150px,82%)!important;
  }
}
