/* RLS Community — unified visual system */
:root{
  --community-primary:#642536;
  --community-primary-dark:#421622;
  --community-primary-soft:#f4e9eb;
  --community-gold:#bd9650;
  --community-gold-soft:#f7f0e2;
  --community-paper:#f8f6f2;
  --community-surface:#fffefa;
  --community-line:#e4ddd6;
  --community-text:#30282a;
  --community-muted:#756a6c;
  --community-shadow:0 10px 28px rgba(58,30,35,.065);
}
.community-page{background:var(--community-paper);color:var(--community-text)}
.community-page main[data-community]{display:block;width:100%;padding-bottom:38px}
.community-page .container{box-sizing:border-box}
.community-page a{transition:color .18s ease,background-color .18s ease,border-color .18s ease,box-shadow .18s ease}
.community-page button,.community-page input,.community-page select,.community-page textarea{font:inherit}
.community-page :focus-visible{outline:3px solid rgba(189,150,80,.55);outline-offset:3px}

/* Introductory banner */
.community-hero{position:relative;padding:42px 0 26px;background:transparent}
.community-hero>.container{
  position:relative;isolation:isolate;overflow:hidden;
  max-width:1104px;margin:0 auto;padding:clamp(28px,5vw,52px);
  border:1px solid rgba(255,255,255,.12);border-top:4px solid var(--community-gold);
  border-radius:18px;color:#fff;
  background:radial-gradient(circle at 8% 12%,rgba(255,255,255,.10),transparent 31%),linear-gradient(118deg,var(--community-primary-dark),#753044 68%,#8b4c4d);
  box-shadow:0 18px 40px rgba(66,22,34,.16)
}
.community-hero>.container:after{
  content:"RLS";position:absolute;z-index:-1;left:3%;bottom:-42px;
  color:rgba(255,255,255,.045);font-family:Georgia,serif;font-size:clamp(110px,18vw,210px);
  font-weight:800;line-height:1;direction:ltr
}
.community-hero .eyebrow{margin-bottom:12px;color:#e8ca8b;font-size:12px;font-weight:800;letter-spacing:.13em}
.community-hero h1{max-width:850px;margin:0 0 16px;color:#fff;font-size:clamp(29px,4vw,43px);font-weight:850;line-height:1.45}
.community-hero p{max-width:850px;margin:0;color:#f3e9e7;font-size:16px;line-height:2.15;text-align:justify}
.community-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:26px}
.community-button{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;
  padding:10px 19px;border:1px solid transparent;border-radius:8px;
  text-align:center;text-decoration:none;font-size:14px;font-weight:800;cursor:pointer;
  transition:transform .18s ease,box-shadow .18s ease,background-color .18s ease
}
.community-button:hover{transform:translateY(-1px)}
.community-button.primary{background:var(--community-gold);border-color:var(--community-gold);color:#2d2020;box-shadow:0 6px 16px rgba(0,0,0,.12)}
.community-button.primary:hover{background:#d0ad6e;border-color:#d0ad6e}
.community-button.outline{border-color:rgba(255,255,255,.55);background:rgba(255,255,255,.07);color:#fff}
.community-button.outline:hover{background:rgba(255,255,255,.16);border-color:#fff}
.community-button[disabled],.community-page button:disabled{opacity:.58;cursor:not-allowed;transform:none}

/* Standard section rhythm and headings */
.community-section{width:100%;max-width:1160px;margin:0 auto;padding:38px 28px}
.community-section>h2{position:relative;margin:0 0 22px;padding:0 0 13px;color:var(--community-primary-dark);font-size:25px;font-weight:850;line-height:1.6}
.community-section>h2:after{content:"";position:absolute;right:0;bottom:0;width:58px;height:3px;border-radius:3px;background:var(--community-gold)}
.community-about{padding-top:42px;padding-bottom:34px}
.community-about-intro{max-width:900px;margin:0 auto 28px;text-align:center}
.community-about-intro .community-about-kicker{margin:0 0 7px;color:#98763a;font-size:11px;font-weight:850;letter-spacing:.12em}
.community-about-intro h2{margin:0 0 12px;color:var(--community-primary-dark);font-size:27px;font-weight:850}
.community-about-intro>p:not(.community-about-kicker){max-width:850px;margin:10px auto;color:#5f5556;font-size:15px;line-height:2.15;text-align:justify}
.community-about-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:17px;margin-top:26px}
.community-about-card{
  min-width:0;padding:23px 22px;background:var(--community-surface);
  border:1px solid var(--community-line);border-top:3px solid #d4c3b6;border-radius:12px;
  box-shadow:0 5px 16px rgba(58,30,35,.035)
}
.community-about-card h3,.community-vision h3{margin:12px 0;color:var(--community-primary);font-size:17px;font-weight:850}
.community-about-number{display:inline-flex;align-items:center;justify-content:center;width:34px;height:32px;border-radius:7px;background:var(--community-gold-soft);color:#84652e;font-size:11px;font-weight:900;direction:ltr}
.community-about-card ul{margin:0;padding:0 18px 0 0;color:#62585a;font-size:13.5px;line-height:2}
.community-about-card li{padding:3px 0}
.community-vision{margin-top:18px;padding:22px 25px;background:#f1ece6;border:1px solid #e7ddd2;border-right:4px solid var(--community-gold);border-radius:10px}
[dir=ltr] .community-vision{border-right:1px solid #e7ddd2;border-left:4px solid var(--community-gold)}
.community-vision h3{margin:0 0 8px}
.community-vision p{margin:0 0 10px;color:#5d5354;line-height:2.1;text-align:justify}
.community-vision strong{color:var(--community-primary-dark);line-height:1.9}

/* Membership categories */
.community-categories{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.community-category{
  display:flex;align-items:center;gap:12px;min-width:0;min-height:82px;padding:15px;
  border:1px solid var(--community-line);border-radius:11px;background:var(--community-surface);
  color:var(--community-primary-dark);text-align:right;cursor:pointer;
  box-shadow:0 4px 12px rgba(58,30,35,.03);
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,background .18s ease
}
.community-category:hover,.community-category[aria-pressed=true]{
  transform:translateY(-2px);border-color:#c9aa72;background:#fffdfa;
  box-shadow:0 8px 20px rgba(58,30,35,.075)
}
.community-category .symbol{display:grid;place-items:center;flex:0 0 40px;width:40px;height:40px;margin:0;border-radius:10px;background:var(--community-primary-soft);font-size:21px}
.community-category strong{display:block;font-size:13px;line-height:1.7}

/* Member directory */
#member-directory{scroll-margin-top:90px}
.community-tools{display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,.52fr) auto;gap:11px;align-items:center;margin:18px 0 22px}
.community-tools input,.community-tools select{
  width:100%;min-width:0;min-height:46px;padding:10px 13px;
  border:1px solid #d9d0cb;border-radius:8px;background:#fff;color:var(--community-text);box-sizing:border-box
}
.community-tools input:focus,.community-tools select:focus,
.membership-card input:focus,.membership-card select:focus,.membership-card textarea:focus,
.member-profile-edit input:focus,.member-profile-edit textarea:focus{
  outline:0;border-color:#b58b4c;box-shadow:0 0 0 3px rgba(189,150,80,.15)
}
.community-search-btn{
  min-height:46px;padding:10px 17px;border:1px solid var(--community-primary);
  border-radius:8px;background:var(--community-primary);color:#fff;font-size:13px;font-weight:800;cursor:pointer
}
.community-search-btn:hover{background:var(--community-primary-dark)}
.community-layout{display:grid;grid-template-columns:minmax(0,1fr) 230px;gap:20px;align-items:start}
.community-members{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;min-width:0}
.community-member{
  position:relative;min-width:0;min-height:238px;padding:20px 16px;
  display:flex;flex-direction:column;align-items:center;justify-content:center;
  border:1px solid var(--community-line);border-radius:12px;background:var(--community-surface);
  text-align:center;box-shadow:0 5px 16px rgba(58,30,35,.04);
  transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease
}

.community-member:hover{z-index:5;transform:translateY(-3px);border-color:#d4c3a4;box-shadow:0 12px 25px rgba(58,30,35,.09)}
.community-member{justify-content:flex-start;padding-top:12px}
.member-card-links{display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;width:100%;min-height:27px;margin:0 0 7px;direction:ltr}
.member-social-icon{display:inline-flex;align-items:center;justify-content:center;min-width:25px;height:25px;padding:0 5px;border:1px solid #e7ded3;border-radius:7px;background:#fff;color:#66565a;text-decoration:none;font-size:10px;font-weight:850;line-height:1}
.member-social-icon:hover{transform:translateY(-1px);border-color:var(--community-gold);background:#fbf5e9;color:var(--community-primary-dark)}
.member-social-icon--orcid{color:#a6ce39}
.member-social-icon--researchgate{color:#00a0dc}
.member-social-icon--scholar{color:#4285f4}
.member-social-icon--instagram{color:#b83b77}
.member-social-icon--telegram{color:#229ed9}
.member-social-icon--linkedin{color:#0a66c2}
.member-social-icon--x{color:#111}
.member-card-stats{display:block;margin-top:4px;color:#725c38;font-size:11px;font-weight:800;line-height:1.7}
.community-member .member-open-profile{display:inline-flex;align-items:center;justify-content:center;min-height:34px;margin-top:12px;padding:6px 14px;border:1px solid #d9c69f;border-radius:7px;background:#faf5e9;color:var(--community-primary);font-size:12px;font-weight:850;text-decoration:none}
.community-member .member-open-profile:hover{background:#f1e5ca;border-color:var(--community-gold)}
.member-public-card>.member-card-links{justify-content:flex-start;margin:0 0 16px}

.community-member[hidden],.member-filter-empty[hidden],.community-avatar[hidden],.community-avatar-image[hidden]{display:none!important}
.community-member-link{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%;gap:5px;color:inherit;text-decoration:none}
.community-member-link:focus-visible{outline:3px solid rgba(189,150,80,.65);outline-offset:4px;border-radius:8px}
.community-member h3{margin:2px 0 1px;color:var(--community-primary-dark);font-size:16px;font-weight:850;line-height:1.6}
.community-member p{margin:4px 0 0;color:#72686a;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.community-avatar,.community-avatar-image{
  display:grid;place-items:center;width:78px;height:78px;min-width:78px;margin:0 auto 9px;
  border:3px solid #eee4d8;border-radius:50%;background:#f1ece7;color:var(--community-primary);
  font-size:24px;font-weight:800;object-fit:cover
}
.member-category{display:inline-flex;align-items:center;justify-content:center;margin-top:6px;padding:4px 10px;border:1px solid #eadfcd;border-radius:30px;background:#f8f2e8;color:#735a32;font-size:11px;font-weight:750;line-height:1.5}
.community-member-joined{display:block;margin-top:7px;color:#847a7b;font-size:11px;line-height:1.7}
.community-member .member-open-profile{margin-top:8px;color:var(--community-primary);font-size:12px;font-weight:800}
.community-empty{
  grid-column:1/-1;padding:28px 22px;border:1px dashed #cbbeb5;border-radius:11px;
  background:#fffdfa;color:#716768;text-align:center;font-size:14px;line-height:2
}
.community-sidebar{
  position:sticky;top:90px;padding:19px 18px;border:1px solid var(--community-line);
  border-top:3px solid var(--community-gold);border-radius:11px;background:var(--community-surface);
  box-shadow:0 5px 16px rgba(58,30,35,.04)
}
.community-sidebar h3{margin:0 0 10px;color:var(--community-primary-dark);font-size:16px;font-weight:850}
.community-sidebar a{display:block;padding:10px 2px;border-bottom:1px solid #eee8e2;color:#66595b;font-size:13px;text-decoration:none}
.community-sidebar a:last-child{border-bottom:0}
.community-sidebar a:hover{color:var(--community-primary)}
/* Loading and filter states */
.community-members>.community-empty{min-height:110px;display:flex;align-items:center;justify-content:center}
.community-member .community-avatar-image{display:block}
.community-admin-link[hidden],#community-admin-link[hidden]{display:none!important}

/* Membership, sign-up and sign-in */
#membership-process{scroll-margin-top:90px}
.membership-columns{display:grid;grid-template-columns:265px minmax(0,1fr);gap:22px;align-items:start;margin-top:20px}
.membership-profile-column,.membership-access-column{min-width:0}
.membership-profile-entry{
  display:grid;gap:12px;align-content:start;padding:23px 19px;
  border:1px solid var(--community-line);border-top:4px solid var(--community-gold);
  border-radius:12px;background:var(--community-surface);text-align:center;box-shadow:var(--community-shadow)
}
.member-profile-entry-icon{display:grid;place-items:center;width:54px;height:54px;margin:0 auto;border:1px solid #e7d5ad;border-radius:50%;background:var(--community-gold-soft);color:#896a32;font-size:27px}
.membership-profile-entry h3{margin:0;color:var(--community-primary-dark);font-size:19px;font-weight:850}
.membership-profile-entry p{margin:0;color:#6d6263;font-size:13px;line-height:1.9}
.membership-profile-entry small{color:#827778;font-size:11px;line-height:1.8}
.membership-profile-entry .community-button{width:100%;box-sizing:border-box}
.membership-profile-entry[hidden]{display:none!important}
.membership-access-column>.community-note{margin:0 0 14px}
.community-note{padding:15px 18px;border:1px solid #e3d6c2;border-right:4px solid var(--community-gold);border-radius:9px;background:#f7f1e7;color:#62543e;font-size:13px;line-height:1.9}
[dir=ltr] .community-note{border-right:1px solid #e3d6c2;border-left:4px solid var(--community-gold)}
.community-note p{margin:5px 0 0;color:#6d625f}
#membership-process .membership-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(245px,.75fr);gap:16px;align-items:start}
.membership-card{
  display:grid;gap:13px;min-width:0;padding:22px;
  border:1px solid var(--community-line);border-radius:12px;background:var(--community-surface);
  box-shadow:0 6px 18px rgba(58,30,35,.045);box-sizing:border-box
}
.membership-card h3{margin:0;color:var(--community-primary-dark);font-size:18px;font-weight:850}
.membership-card>p:not(.membership-message){margin:0;color:#6c6263;font-size:13px;line-height:1.9}
.membership-card label,.member-profile-edit label{display:grid;gap:6px;min-width:0;color:#514648;font-size:13px;font-weight:700}
.membership-card input:not([type=checkbox]),.membership-card select,.membership-card textarea,
.member-profile-edit input,.member-profile-edit textarea{
  display:block;width:100%;min-width:0;min-height:43px;padding:10px 11px;
  border:1px solid #d9d0cb;border-radius:7px;background:#fff;color:#30282a;box-sizing:border-box
}
.membership-card textarea,.member-profile-edit textarea{min-height:86px;resize:vertical;line-height:1.8}
.membership-card input[type=file],#member-session input[type=file]{padding:8px;background:#fbfaf8;font-size:12px}
.membership-card small,#member-session small{color:#817677;font-size:11px;font-weight:400;line-height:1.7}
.membership-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.membership-social-two{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
.membership-social-two label{min-width:0}
.membership-social-two input{font-size:12px}
.membership-social-heading{margin:7px 0 -3px;color:#75686a;font-size:12px;font-weight:750;line-height:1.7}
.membership-consent{display:flex!important;align-items:flex-start;gap:9px!important;font-weight:550!important;line-height:1.8}
.membership-consent input{flex:0 0 17px;width:17px;height:17px;margin:3px 0 0;accent-color:var(--community-primary)}
.membership-card button.community-button,.member-profile-edit button.community-button{width:100%}
.membership-message{min-height:1.4em;margin:0;color:#5e4c4d;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.membership-success{display:block!important;padding:11px 13px;border:1px solid #b9d7bf;border-radius:8px;background:#eef8ef!important;color:#246338!important;font-weight:750;opacity:1!important;visibility:visible!important}
.membership-link{justify-self:start;padding:4px 0;border:0;background:transparent;color:var(--community-primary);font-size:13px;font-weight:750;text-decoration:underline;cursor:pointer}
.membership-privacy{margin:13px 2px 0;color:#817677;font-size:12px;line-height:1.9}
#membership-process .membership-grid[hidden],
#membership-process .community-note[hidden],
#membership-process .membership-privacy[hidden],
#member-session[hidden],
#member-session .member-profile-avatar[hidden],
#member-session .member-profile-avatar-fallback[hidden]{display:none!important}

/* Full-width member workspace — deliberately outside the narrow sidebar grid */
.member-session-stage{width:100%;margin-top:22px}
#member-session.member-profile-panel{
  display:grid;grid-template-columns:minmax(0,1fr);gap:16px;
  width:100%;max-width:100%;margin:0;padding:clamp(18px,3vw,30px);
  border:1px solid var(--community-line);border-top:4px solid var(--community-gold);
  border-radius:13px;background:var(--community-surface);box-shadow:var(--community-shadow);box-sizing:border-box
}
#member-session.member-profile-panel h2{margin:0;color:var(--community-primary-dark);font-size:23px}
#member-session.member-profile-panel #member-session-text{margin:0;padding:12px 15px;border:1px solid #e9dfd2;border-radius:8px;background:#f8f3ea;color:#665637;font-size:13px;line-height:1.8}
#member-session.member-profile-panel>label{display:grid;gap:7px;color:#514648;font-size:13px;font-weight:700}
#member-session.member-profile-panel>button{width:max-content;max-width:100%}
.member-profile-summary{display:flex;align-items:center;gap:18px;padding:18px;border:1px solid #e8e0d8;border-radius:11px;background:#faf8f4}
.member-profile-avatar{display:block;width:128px;height:150px;min-width:128px;border:5px double var(--community-gold);border-radius:12px;outline:1px solid #eadab8;outline-offset:2px;object-fit:cover;background:#eee8e2;box-shadow:0 6px 16px rgba(80,49,34,.12)}
.member-profile-avatar-fallback{display:flex;align-items:center;justify-content:center;color:var(--community-primary);font-size:27px;font-weight:850}
.member-profile-heading h3{margin:0 0 7px;color:var(--community-primary-dark);font-size:20px;font-weight:850}
.member-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.member-profile-facts>div,.member-profile-field{display:grid;gap:5px;min-width:0;padding:12px 14px;border:1px solid #e9e2dc;border-radius:8px;background:#fbf9f6}
.member-profile-facts strong,.member-profile-field strong{color:#77686a;font-size:12px}
.member-profile-facts span,.member-profile-field span,.member-profile-field a{color:#4f2831;font-size:13px;overflow-wrap:anywhere}
.member-profile-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.member-profile-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;padding:20px;border:1px solid var(--community-line);border-radius:10px;background:#fbf9f6}
.member-profile-edit h3,.member-profile-edit>p,.member-profile-edit details,.member-profile-edit>button{grid-column:1/-1}
.member-profile-edit h3{margin:0;color:var(--community-primary);font-size:17px}
.member-profile-edit>p{margin:0;color:#74696a;font-size:12px;line-height:1.8}
.member-profile-edit label:has(textarea){grid-column:1/-1}
.member-profile-edit .membership-two{grid-column:1/-1}
.member-profile-edit .membership-consent{grid-column:1/-1}
.member-profile-edit .member-language-fields{grid-column:1/-1}
.member-profile-uploads{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;border:1px solid #e8e0d8;border-radius:10px;background:#fbf9f6}
.member-profile-upload-item{display:grid;gap:10px;align-content:start;min-width:0}
.member-profile-upload-item button{width:100%}
#member-session button#upload-avatar,#member-session button#upload-evidence{display:inline-flex;align-items:center;justify-content:center;min-height:43px;padding:10px 16px;border:1px solid var(--community-gold);border-radius:8px;background:var(--community-gold);color:#30251d;font-size:13px;font-weight:800;cursor:pointer}
#member-session .member-profile-edit button{width:100%}
#member-session .member-profile-edit input[readonly]{background:#f1eeea;color:#766d6a}
#member-session .member-language-fields{margin:0;padding:13px;border:1px solid #e4ddd6;border-radius:8px;background:#fff}
.member-language-fields summary{cursor:pointer;color:var(--community-primary);font-size:13px;font-weight:800;line-height:1.8}
.member-language-fields h4{margin:14px 0 8px;color:#76582d;font-size:13px}
.member-language-fields label{display:grid;margin:9px 0;font-size:12px;font-weight:650}
.member-language-fields input,.member-language-fields textarea{width:100%;box-sizing:border-box}
#member-profile-edit .membership-message{grid-column:1/-1}

/* Public member profile */
.member-public-page{max-width:1104px;scroll-margin-top:90px}
.member-public-card{margin-top:17px;padding:clamp(18px,4vw,34px);border:1px solid var(--community-line);border-radius:14px;background:var(--community-surface);box-shadow:var(--community-shadow)}
.member-back{margin-bottom:10px!important;border-color:#cdbda8!important;color:var(--community-primary)!important;background:#fff!important}
.member-public-heading{display:flex;align-items:center;gap:24px;padding-bottom:24px;border-bottom:1px solid var(--community-line)}
.member-public-avatar{display:block;width:180px;height:210px;min-width:180px;border:6px double var(--community-gold);border-radius:13px;outline:1px solid #eadab8;outline-offset:2px;object-fit:cover;background:#eee8e2;box-shadow:0 7px 20px rgba(80,49,34,.12)}
.member-public-heading h1{margin:0 0 10px;color:var(--community-primary-dark);font-size:clamp(22px,4vw,31px);font-weight:850}
.member-public-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:21px}
.member-public-field{min-width:0;padding:15px;border:1px solid #e9e2dc;border-radius:9px;background:#fbf9f6}
.member-public-field h2{margin:0 0 8px;color:#78686a;font-size:13px;font-weight:800}
.member-public-field p{margin:0;color:#49383a;font-size:14px;line-height:1.95;white-space:pre-wrap;overflow-wrap:anywhere}
.member-public-field a{color:var(--community-primary);overflow-wrap:anywhere}
.member-public-join-date{margin:9px 0 0;color:#817476;font-size:12px;line-height:1.8}

/* Portrait enlargement remains local and never opens a lightbox */
.community-avatar-image,.member-profile-avatar,.member-public-avatar{
  cursor:zoom-in;transform-origin:center center;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
  position:relative;z-index:1
}
.community-avatar-image:hover,.community-avatar-image.is-zoomed,
.member-profile-avatar:hover,.member-profile-avatar.is-zoomed,
.member-public-avatar:hover,.member-public-avatar.is-zoomed{
  z-index:20;transform:scale(2);cursor:zoom-out;
  box-shadow:0 10px 28px rgba(45,22,25,.35);border-color:var(--community-gold)
}
.community-member-link,.community-member,.member-public-heading,.member-profile-summary{overflow:visible}
.avatar-lightbox,.image-lightbox,.community-image-overlay{display:none!important}

/* Footer */
.community-footer{margin-top:24px;padding:25px 0;background:var(--community-primary-dark);color:#f4e9e7;text-align:center}
.community-footer strong{display:block;margin-bottom:5px;color:#e7c987;font-size:15px}
.community-footer .container>div{font-size:12px;color:#e1d1d0}

/* Responsive layouts */
@media(max-width:1000px){
  .community-categories{grid-template-columns:repeat(3,minmax(0,1fr))}
  .community-about-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .community-layout{grid-template-columns:minmax(0,1fr) 210px}
  .community-members{grid-template-columns:repeat(2,minmax(0,1fr))}
  .membership-columns{grid-template-columns:230px minmax(0,1fr);gap:17px}
  #membership-process .membership-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:780px){
  .community-hero{padding:25px 0 17px}
  .community-hero>.container{margin:0 18px;padding:28px 24px}
  .community-section{padding:31px 22px}
  .community-layout{grid-template-columns:1fr}
  .community-sidebar{position:static;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 15px}
  .community-sidebar h3{grid-column:1/-1}
  .membership-columns{grid-template-columns:minmax(0,1fr)}
  .membership-profile-column{grid-row:1}
  .membership-access-column{grid-row:2}
  .membership-profile-entry{max-width:none}
  .membership-profile-entry .community-button{width:auto;justify-self:center;min-width:220px}
  #membership-process .membership-grid{grid-template-columns:minmax(0,1.25fr) minmax(230px,.75fr)}
}
@media(max-width:620px){
  .community-hero>.container{margin:0 13px;padding:24px 19px;border-radius:13px}
  .community-hero h1{font-size:27px}
  .community-hero p{font-size:14px;line-height:2}
  .community-actions{display:grid;grid-template-columns:1fr}
  .community-actions .community-button{width:100%;box-sizing:border-box}
  .community-section{padding:27px 17px}
  .community-section>h2{font-size:21px}
  .community-about-grid,.community-categories{grid-template-columns:repeat(2,minmax(0,1fr))}
  .community-category{min-height:76px;padding:11px}
  .community-category .symbol{flex-basis:34px;width:34px;height:34px;font-size:18px}
  .community-category strong{font-size:12px}
  .community-tools{grid-template-columns:1fr}
  .community-members{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .community-member{min-height:220px;padding:15px 10px}
  #membership-process .membership-grid{grid-template-columns:1fr}
  .membership-card{padding:18px}
  .membership-two{grid-template-columns:1fr}
  .member-profile-summary{align-items:flex-start;flex-direction:column}
  .member-profile-facts,.member-profile-fields,.member-profile-edit,.member-profile-uploads,.member-public-fields{grid-template-columns:1fr}
  .member-profile-edit h3,.member-profile-edit>p,.member-profile-edit details,.member-profile-edit>button,.member-profile-edit label:has(textarea),.member-profile-edit .membership-two,.member-profile-edit .membership-consent,.member-profile-edit .member-language-fields{grid-column:1}
  .member-public-heading{align-items:flex-start;flex-direction:column}
  .member-public-avatar{width:145px;height:175px;min-width:145px}
}
@media(max-width:390px){
  .community-about-grid,.community-categories,.community-members{grid-template-columns:1fr}
  .community-category{min-height:66px}
  .community-sidebar{grid-template-columns:1fr}
  .community-sidebar h3{grid-column:1}
}
@media(prefers-reduced-motion:reduce){
  .community-page *{scroll-behavior:auto!important;transition:none!important}
}


/* Membership workspace placement and personal-profile visibility fixes */
#membership-process{margin-top:34px;margin-bottom:42px;scroll-margin-top:105px}
#membership-process>.membership-columns{margin-top:20px}
#membership-process .member-session-stage{clear:both;width:100%;margin:26px 0 0}
#member-session.member-profile-panel{width:100%;max-width:none;min-width:0}
#member-session .member-profile-summary{display:flex;align-items:center;gap:22px;min-height:156px}
#member-session .member-profile-avatar{
  width:132px;height:156px;flex:0 0 132px;object-fit:cover;
  border:3px solid var(--community-gold);border-radius:12px;
  background:#f7f0e2;box-shadow:0 5px 16px rgba(50,25,30,.12)
}
#member-session .member-profile-avatar-fallback{
  display:grid;place-items:center;width:132px;height:156px;flex:0 0 132px;
  border:3px solid var(--community-gold);border-radius:12px;
  background:#f7f0e2;color:var(--community-primary);font-size:27px;font-weight:800
}
#member-session .member-profile-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#member-session .member-profile-facts>div{
  display:grid;gap:5px;padding:13px 16px;border:1px solid var(--community-line);
  border-radius:9px;background:#fffefa
}
#member-session .member-profile-facts strong{color:var(--community-primary-dark);font-size:13px}
#member-session .member-profile-facts span{color:var(--community-text);font-size:15px;font-weight:700}
@media(max-width:700px){
  #membership-process{margin-top:24px}
  #member-session .member-profile-summary{align-items:flex-start;flex-wrap:wrap}
  #member-session .member-profile-facts{grid-template-columns:minmax(0,1fr)}
}

/* Dedicated member portal */
.member-account-page main{padding-bottom:56px}
.member-account-hero{padding-bottom:8px}
.member-account-page #membership-process{padding-top:24px}
.member-account-page #membership-process>h2{display:none}
.member-account-page .membership-columns{display:block}
.member-account-page .membership-access-column{width:100%;max-width:none}
.member-account-page .membership-grid{grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);align-items:start;gap:22px}
.member-account-page .membership-card{border-radius:16px;box-shadow:0 12px 32px rgba(58,30,35,.07)}
.member-account-page .member-session-stage{max-width:1100px;margin:28px auto 0}
.member-account-page .member-profile-panel{width:100%;padding:clamp(20px,3vw,34px)}
.member-account-page .membership-privacy{max-width:900px;margin:18px auto;text-align:center}
.community-join-cta{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:28px;background:#fffefa;border:1px solid var(--community-line);border-right:4px solid var(--community-gold);border-radius:14px;box-shadow:var(--community-shadow)}
.community-join-cta h2{margin:0 0 8px;color:var(--community-primary-dark);font-size:22px}
.community-join-cta p{margin:0;color:var(--community-muted);line-height:1.9}
.community-join-cta .community-actions{margin:0}
.community-button.secondary{background:var(--community-primary);border-color:var(--community-primary);color:#fff}
@media(max-width:760px){.member-account-page .membership-grid{grid-template-columns:1fr}.community-join-cta{align-items:stretch;flex-direction:column}.community-join-cta .community-actions{flex-direction:column}}

.member-admin-access{padding:22px;border:1px solid #d9c69e;border-right:4px solid var(--community-gold);border-radius:12px;background:#fbf7ee}
.member-admin-access h3{margin:0 0 8px;color:var(--community-primary-dark)}
.member-admin-access p{margin:0 0 16px;line-height:1.9;color:#665637}
.member-admin-access[hidden]{display:none!important}


/* Top-of-page member access panel */
.community-join-cta{
  max-width:1104px;margin:18px auto 28px;padding:24px 28px;
  display:flex;align-items:center;justify-content:space-between;gap:24px;
  background:linear-gradient(110deg,#fffefa 0%,#f7f0e5 100%);
  border:1px solid #e3d6c2;border-right:5px solid var(--community-gold);
  border-radius:14px;box-shadow:0 8px 22px rgba(58,30,35,.055)
}
.community-join-cta>div:first-child{min-width:0;flex:1}
.community-join-cta .community-about-kicker{margin:0 0 5px;color:#98763a;font-size:11px;font-weight:850;letter-spacing:.12em}
.community-join-cta h2{margin:0 0 6px;color:var(--community-primary-dark);font-size:21px;font-weight:850}
.community-join-cta p{margin:0;color:var(--community-muted);font-size:14px;line-height:1.9}
.community-join-cta .community-actions{display:flex;flex:0 0 auto;gap:10px;margin:0}
.community-join-cta .community-button{min-width:172px;white-space:nowrap}
@media(max-width:760px){
 .community-join-cta{align-items:stretch;flex-direction:column;margin:14px 17px 22px;padding:20px;gap:14px}
 .community-join-cta .community-actions{display:grid;grid-template-columns:1fr 1fr}
 .community-join-cta .community-button{min-width:0;width:100%;box-sizing:border-box}
}
@media(max-width:420px){.community-join-cta .community-actions{grid-template-columns:1fr}}


/* Membership-group identity colors: each member card and its group emblem share a distinct pastel palette. */
.community-member--student{background:#f2eaff;border-color:#d8c5f4}
.community-member--graduate{background:#e1f8f4;border-color:#a9e3d8}
.community-member--faculty{background:#cfe6ca;border-color:#8fbd88}
.community-member--researcher{background:#e8f2ff;border-color:#bfd5f5}
.community-member--translator{background:#fff7d9;border-color:#eadb9b}
.community-member--culture{background:#ffeded;border-color:#efc1c1}
.community-member--honorary{background:#ffe0e3;border-color:#e58b98}
.community-member--student .member-category--student{background:#e5d5fb;border-color:#c8a9ed;color:#58358a}
.community-member--graduate .member-category--graduate{background:#c9f0e9;border-color:#8bd4c6;color:#17695d}
.community-member--faculty .member-category--faculty{background:#afd5a9;border-color:#80b77a;color:#214f25}
.community-member--researcher .member-category--researcher{background:#d3e5ff;border-color:#a5c7f1;color:#24558f}
.community-member--translator .member-category--translator{background:#fff0b8;border-color:#e5d17a;color:#785b12}
.community-member--culture .member-category--culture{background:#ffdada;border-color:#eab0b0;color:#8b3535}
.community-member--honorary .member-category--honorary{background:#ffc4cc;border-color:#e58b98;color:#8f1d32}
.member-category{gap:6px;font-weight:800}
.member-category-symbol{display:inline-grid;place-items:center;min-width:17px;height:17px;border-radius:50%;font-size:12px;line-height:1}
.member-public-card .member-category{margin-top:0}

/* Match category filter icons to the membership badges used on member cards. */
.community-category[data-category-filter="student"] .symbol{background:#f2eaff;color:#58358a;font-weight:850;border:1px solid #d8c5f4}
.community-category[data-category-filter="graduate"] .symbol{background:#e1f8f4;color:#17695d;font-weight:850;border:1px solid #a9e3d8}
.community-category[data-category-filter="faculty"] .symbol{background:#cfe6ca;color:#214f25;font-weight:850;border:1px solid #8fbd88}
.community-category[data-category-filter="researcher"] .symbol{background:#e8f2ff;color:#24558f;font-weight:850;border:1px solid #bfd5f5}
.community-category[data-category-filter="translator"] .symbol{background:#fff7d9;color:#785b12;font-weight:850;border:1px solid #eadb9b}
.community-category[data-category-filter="culture"] .symbol{background:#ffeded;color:#8b3535;font-weight:850;border:1px solid #efc1c1}
.community-category[data-category-filter="honorary"] .symbol{background:#ffe0e3;color:#8f1d32;font-weight:850;border:1px solid #e58b98}

/* Keep the original category pictograms on both filters and member cards. */
.member-category-symbol{font-family:inherit;font-size:14px;min-width:19px;height:19px}


/* Unique QR code on every member card, encoding that member's public profile URL. */
.member-card-qr{display:flex;align-items:center;justify-content:center;margin:12px auto 2px;padding:8px;width:92px;max-width:100%;border:1px solid rgba(70,90,120,.18);border-radius:12px;background:rgba(255,255,255,.72)}
.member-card-qr img{display:block;width:76px;height:76px;object-fit:contain;background:#fff;border-radius:6px}
@media(max-width:420px){.member-card-qr{width:84px;padding:7px}.member-card-qr img{width:68px;height:68px}}

/* Make the QR image itself an accessible, clickable link to its member profile. */
.member-card-qr-link{display:block;line-height:0;text-decoration:none;border-radius:6px}
.member-card-qr-link:focus-visible{outline:3px solid #b98b3d;outline-offset:3px}


/* Full public profile uses the same pastel identity as its member-directory card. */
.member-public-card[class*="member-public-card--"]{
  background:var(--member-profile-bg);
  border-color:var(--member-profile-border);
}
.member-public-card[class*="member-public-card--"] .member-public-heading{
  border-bottom-color:var(--member-profile-border);
}
.member-public-card[class*="member-public-card--"] .member-public-avatar{
  border-color:var(--member-profile-badge-border);
  outline-color:var(--member-profile-border);
}
.member-public-card[class*="member-public-card--"] .member-category{
  background:var(--member-profile-badge-bg);
  border-color:var(--member-profile-badge-border);
  color:var(--member-profile-accent);
}
.member-public-card[class*="member-public-card--"] .member-public-field{
  background:rgba(255,255,255,.78);
  border-color:var(--member-profile-border);
}
.member-public-card[class*="member-public-card--"] .member-public-field h2{
  color:var(--member-profile-accent);
}
.member-public-card--student{--member-profile-bg:#f2eaff;--member-profile-border:#d8c5f4;--member-profile-accent:#58358a;--member-profile-badge-bg:#e5d5fb;--member-profile-badge-border:#c8a9ed}
.member-public-card--graduate{--member-profile-bg:#e1f8f4;--member-profile-border:#a9e3d8;--member-profile-accent:#17695d;--member-profile-badge-bg:#c9f0e9;--member-profile-badge-border:#8bd4c6}
.member-public-card--faculty{--member-profile-bg:#cfe6ca;--member-profile-border:#8fbd88;--member-profile-accent:#214f25;--member-profile-badge-bg:#afd5a9;--member-profile-badge-border:#80b77a}
.member-public-card--researcher{--member-profile-bg:#e8f2ff;--member-profile-border:#bfd5f5;--member-profile-accent:#24558f;--member-profile-badge-bg:#d3e5ff;--member-profile-badge-border:#a5c7f1}
.member-public-card--translator{--member-profile-bg:#fff7d9;--member-profile-border:#eadb9b;--member-profile-accent:#785b12;--member-profile-badge-bg:#fff0b8;--member-profile-badge-border:#e5d17a}
.member-public-card--culture{--member-profile-bg:#ffeded;--member-profile-border:#efc1c1;--member-profile-accent:#8b3535;--member-profile-badge-bg:#ffdada;--member-profile-badge-border:#eab0b0}
.member-public-card--honorary{--member-profile-bg:#ffe0e3;--member-profile-border:#e58b98;--member-profile-accent:#8f1d32;--member-profile-badge-bg:#ffc4cc;--member-profile-badge-border:#e58b98}


/* Four fixed placeholder cards for the Association Council. */
.council-section{padding-top:22px;padding-bottom:24px}
.council-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;align-items:stretch}
.council-member{position:relative;z-index:0;display:flex;min-width:0;min-height:174px;flex-direction:column;align-items:center;justify-content:center;gap:9px;padding:18px 12px;border:1px solid var(--community-line);border-radius:13px;background:var(--community-surface);box-shadow:0 5px 16px rgba(58,30,35,.045);text-align:center;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.council-member:hover{z-index:4;border-color:#c9aa72;box-shadow:0 12px 25px rgba(58,30,35,.11)}
.council-avatar{display:grid;place-items:center;width:76px;height:76px;border:3px solid #e7ded3;border-radius:50%;background:#f4f0eb;color:#8a7b76;font-size:30px;transform-origin:center;transition:transform .2s ease,box-shadow .2s ease}
.council-member:hover .council-avatar{transform:scale(2);box-shadow:0 5px 18px rgba(35,25,20,.18)}
.council-member-name{min-height:8px;width:78%;border-bottom:1px solid #e9e1d9}
.council-member-role{color:var(--community-muted);font-size:12px;font-weight:750;line-height:1.7}
@media(max-width:760px){.council-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.council-grid{gap:10px}.council-member{min-height:158px;padding:14px 8px}.council-avatar{width:66px;height:66px}}


/* Required Mr/Ms choice and gold membership certificate workspace */
.member-salutation-field{display:flex;flex-wrap:wrap;align-items:center;gap:12px 22px;margin:0 0 14px;padding:12px 14px;border:1px solid #d8c18a;border-radius:9px;background:#fffaf0}
.member-salutation-field legend{padding:0 5px;color:#6d5426;font-size:13px;font-weight:850}
.member-salutation-field label{display:inline-flex!important;align-items:center;gap:7px;margin:0!important;font-weight:750}
.member-salutation-field input[type=radio]{width:17px;height:17px;accent-color:#a77b28}
.member-certificate-panel{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:24px 0;padding:20px 22px;border:1px solid #d8bd7b;border-right:5px solid #bd913b;border-radius:13px;background:linear-gradient(120deg,#fffdf7,#f7efd9);box-shadow:0 7px 20px rgba(95,70,24,.07)}
.member-certificate-panel[hidden]{display:none!important}
.member-certificate-panel h3{margin:0 0 5px;color:#76571d;font-size:18px}
.member-certificate-panel p{margin:0;color:#766b55;font-size:13px;line-height:1.9}
.member-certificate-panel button{flex:0 0 auto}
#member-certificate-note{margin-top:7px}
@media(max-width:650px){.member-certificate-panel{align-items:stretch;flex-direction:column}.member-certificate-panel button{width:100%}}


/* Dynamic membership certificate image: landscape A4, zoom and download */
.rls-certificate-section{margin:34px 0 12px;padding:24px 20px;border:1px solid #d7bd7d;border-radius:15px;background:linear-gradient(135deg,#fffdf7,#f5ecd6);box-shadow:0 10px 26px rgba(80,58,22,.07);overflow:visible}
.rls-certificate-heading{text-align:center;margin-bottom:16px}
.rls-certificate-heading h2{margin:0 0 5px;color:#17365f;font-size:22px}
.rls-certificate-heading p{margin:0;color:#766342;font-size:13px}
.rls-certificate-frame{width:100%;overflow:visible;display:flex;justify-content:center;align-items:flex-start}
.rls-membership-certificate-image{display:block;width:100%;height:auto;max-width:560px;border-radius:4px;box-shadow:0 9px 28px rgba(32,35,43,.18);cursor:zoom-in;transform-origin:center top;transition:transform .22s ease,box-shadow .22s ease;background:#fffaf0}
.rls-membership-certificate-image.is-zoomed{position:relative;z-index:30;transform:scale(2);cursor:zoom-out;box-shadow:0 18px 42px rgba(20,24,34,.3)}
.rls-certificate-actions{display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;margin-top:18px}
.rls-certificate-hint{color:#766b55;font-size:12px}
@media(max-width:650px){.rls-certificate-section{padding:15px 10px}.rls-certificate-actions{flex-direction:column}.rls-certificate-hint{text-align:center}}
@media print{.rls-certificate-heading,.rls-certificate-actions{display:none!important}.rls-certificate-section{padding:0;border:0;box-shadow:none;background:#fff}.rls-membership-certificate-image{max-width:none;width:100%;box-shadow:none}}


/* Public membership identity details displayed on the QR destination profile */
.member-public-number,.member-public-status{margin:3px 0 0;color:#53627a;font-size:.9rem;font-weight:700}
.member-public-number{color:#8b6825}

.community-guide{display:flex;align-items:center;justify-content:center;gap:clamp(12px,2.2vw,28px);flex-wrap:nowrap;max-width:1104px;margin:0 auto 12px;padding:9px 15px;border:1px solid #e7ded3;border-right:3px solid var(--community-gold);border-radius:8px;background:#fffefa;white-space:nowrap;overflow-x:auto}
.community-guide strong{flex:0 0 auto;color:var(--community-primary-dark);font-size:12px;font-weight:850}
.community-guide a{flex:0 0 auto;color:#66595b;font-size:11.5px;text-decoration:none}
.community-guide a:hover{color:var(--community-primary);text-decoration:underline}
.community-layout{display:block}
.community-members{grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.community-pagination{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:6px;flex-wrap:wrap;margin:20px 0 4px}
.community-page-btn{min-width:34px;height:34px;padding:0 10px;border:1px solid #dfd4c9;border-radius:7px;background:#fff;color:var(--community-primary);font-size:12px;font-weight:800;cursor:pointer}
.community-page-btn:hover{border-color:var(--community-gold);background:#faf5e9}
.community-page-btn[aria-current="page"]{border-color:var(--community-primary);background:var(--community-primary);color:#fff}
.community-page-btn:disabled{opacity:.4;cursor:default}
@media(max-width:900px){.community-members{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){.community-members{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.community-guide{justify-content:flex-start}}
@media(max-width:390px){.community-members{grid-template-columns:1fr}}

/* Compact, separated social links on public member profiles */
.member-card-links{display:flex;align-items:center;justify-content:center;gap:7px;flex-wrap:wrap;direction:ltr;width:100%;margin:0 0 12px}
.member-card-links .member-social-icon{min-width:29px;height:27px;padding:0 7px;border-radius:7px;font-size:10px;line-height:1;white-space:nowrap}
.member-public-card>.member-card-links{justify-content:center;margin:0 0 16px}


/* Collapsible membership conditions panel — responsive on desktop and mobile */
.membership-conditions-section{padding-top:22px;padding-bottom:22px}
.community-accordion{overflow:hidden;border:1px solid #e7ded3;border-radius:12px;background:#fffefa;box-shadow:0 5px 16px rgba(58,30,35,.045)}
.community-accordion-summary{display:flex;align-items:center;gap:12px;min-height:62px;padding:14px 19px;cursor:pointer;list-style:none;direction:rtl}
.community-accordion-summary::-webkit-details-marker{display:none}
.community-accordion-summary::marker{content:""}
.community-accordion-summary:hover{background:#fcf8f0}
.community-accordion-title{color:var(--community-primary-dark);font-size:20px;font-weight:850;line-height:1.65}
.community-accordion-icon{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;border:1px solid #d7c29b;border-radius:50%;background:#fbf5e9;color:var(--community-primary);font-size:22px;font-weight:500;line-height:1}
.community-accordion-icon::before{content:"+";transform:translateY(-1px)}
.community-accordion[open] .community-accordion-icon::before{content:"−";transform:none}
.community-accordion-content{padding:4px 20px 20px;border-top:1px solid #eee5d8;color:var(--community-text);line-height:1.9}
.community-accordion-content h3{margin:17px 0 7px;color:var(--community-primary-dark);font-size:16px;font-weight:850}
.community-accordion-content p{margin:10px 0;line-height:1.95}
.community-accordion-content ul{margin:8px 0 14px;padding-right:23px;line-height:2}
.community-accordion-content .community-actions{margin-top:14px}
.community-accordion-summary:focus-visible{outline:3px solid rgba(189,150,80,.6);outline-offset:-3px}
@media(max-width:620px){
  .membership-conditions-section{padding-top:16px;padding-bottom:16px}
  .community-accordion-summary{min-height:54px;padding:11px 13px;gap:9px}
  .community-accordion-title{font-size:16px;line-height:1.7}
  .community-accordion-icon{flex-basis:27px;width:27px;height:27px;font-size:20px}
  .community-accordion-content{padding:4px 13px 16px;font-size:13px}
  .community-accordion-content h3{font-size:14px}
  .community-accordion-content ul{padding-right:19px}
}


/* Official PNG certificate: compact actions and shared presentation in both profile views */
.member-account-page .member-certificate-panel{
  display:block;
  margin:20px 0;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
}
.member-account-page .member-certificate-panel[hidden]{display:none!important}
.member-account-page .member-certificate-panel .rls-certificate-section{
  max-width:900px;
  margin:18px auto;
  padding:18px 16px;
}
.rls-certificate-download.community-button,
.rls-certificate-download{
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  flex:0 0 auto!important;
  width:auto!important;
  min-width:0!important;
  max-width:260px;
  min-height:38px;
  padding:8px 18px!important;
  margin:0 auto;
  border-radius:8px;
  font-size:13px!important;
  line-height:1.5!important;
  white-space:nowrap;
  box-sizing:border-box;
}
.rls-certificate-actions{
  justify-content:center;
  align-items:center;
  gap:10px;
  margin-top:12px;
}
.rls-certificate-hint{
  display:block;
  text-align:center;
  line-height:1.7;
}
@media(max-width:650px){
  .member-account-page .member-certificate-panel .rls-certificate-section{padding:12px 8px}
  .rls-certificate-actions{flex-direction:column;gap:8px}
  .rls-certificate-download.community-button,
  .rls-certificate-download{width:auto!important;max-width:100%;min-height:36px;padding:7px 16px!important;font-size:12px!important}
}


/* Full profile: recognizable brand logos with their names; directory cards remain icon-only. */
.member-profile-links{display:flex;align-items:center;justify-content:center;gap:12px 18px;flex-wrap:wrap;width:100%;margin:0 0 20px;padding:12px 14px;border:1px solid #eadfc9;border-radius:14px;background:rgba(255,255,255,.72);direction:rtl}
.member-profile-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:42px;padding:6px 10px;border-radius:10px;color:var(--community-primary-dark,#17365d);font-size:14px;font-weight:800;text-decoration:none;transition:background .18s ease,transform .18s ease}
.member-profile-link:hover{background:#f8f0df;transform:translateY(-1px)}
.member-profile-link img{display:block;width:30px;height:30px;object-fit:contain;flex:0 0 30px}
.member-profile-link span{white-space:nowrap}
.member-profile-link--orcid span{color:#6b941e}
.member-profile-link--researchgate span{color:#087e9c}
.member-profile-link--scholar span{color:#3367b1}
@media(max-width:600px){.member-profile-links{justify-content:flex-start;gap:8px;padding:10px}.member-profile-link{min-height:40px;padding:5px 8px;font-size:13px}.member-profile-link img{width:27px;height:27px;flex-basis:27px}}


@media(max-width:720px){
 .rls-star-levels{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rls-star-levels>div:last-child{grid-column:1/-1}
 .rls-points-table{font-size:13px}
 .member-contribution-summary{padding:15px}
 .member-contribution-activity{grid-template-columns:1fr}
 .member-contribution-activity b{justify-self:start}
}

.member-card-score{display:flex;align-items:center;justify-content:center;gap:7px;margin:8px 0;color:#bd8b2f;direction:ltr}
.member-card-score span{font-size:16px;letter-spacing:1px}
.member-card-score small{font-size:12px;color:#725c39;direction:rtl}


/* RLS member identity emblems: academic sunbursts and distinct discipline seals */
.member-avatar-emblem{position:relative;display:grid;place-items:center;flex:0 0 auto;isolation:isolate}
.member-avatar-emblem--card{width:100px;height:100px;margin:0 auto 8px}
.member-avatar-emblem--card .community-avatar,
.member-avatar-emblem--card .community-avatar-image{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:76px;height:76px;margin:0;z-index:1;border-radius:50%;object-fit:cover}
.member-avatar-emblem--card .member-emblem{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.member-avatar-emblem--profile{width:220px;height:220px;margin:0 auto 8px}
.member-avatar-emblem--profile .member-public-avatar{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:190px;height:190px;margin:0;z-index:1;border-radius:50%;object-fit:cover}
.member-avatar-emblem--profile .member-emblem{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.member-emblem-svg{display:block;width:100%;height:100%;overflow:visible}
.member-emblem--special .member-emblem-svg{filter:drop-shadow(0 2px 3px rgba(25,20,10,.2))}
.member-public-heading{align-items:center}
.member-public-heading>div:first-child{flex:0 0 auto}
@media(max-width:620px){
 .member-avatar-emblem--profile{width:196px;height:196px}
 .member-avatar-emblem--profile .member-public-avatar{width:168px;height:168px}
 .member-avatar-emblem--card{width:92px;height:92px}
 .member-avatar-emblem--card .community-avatar,.member-avatar-emblem--card .community-avatar-image{width:70px;height:70px}
}

/* FIX: keep member identity decorations on the frame, never across the face */
.member-avatar-emblem--profile .member-public-avatar{width:174px;height:174px}
.member-avatar-emblem--profile .member-emblem{z-index:2}
.member-avatar-emblem--card .community-avatar,
.member-avatar-emblem--card .community-avatar-image{width:76px;height:76px}
.member-avatar-emblem--card .member-emblem{z-index:2}
.member-emblem-svg{overflow:visible}
@media(max-width:620px){
 .member-avatar-emblem--profile{width:196px;height:196px}
 .member-avatar-emblem--profile .member-public-avatar{width:154px;height:154px}
 .member-avatar-emblem--card .community-avatar,
 .member-avatar-emblem--card .community-avatar-image{width:70px;height:70px}
}


/* Member detail page keeps its original rectangular portrait.
   Decorative member emblems are reserved for the community directory cards. */
.member-public-card .member-public-heading>.member-public-avatar,
.member-public-card .member-public-heading>img.member-public-avatar,
.member-public-card .member-public-heading>div.member-public-avatar{
  position:relative;
  left:auto;
  top:auto;
  transform:none;
  width:180px;
  height:210px;
  min-width:180px;
  border-radius:13px;
  object-fit:cover;
}
@media(max-width:620px){
 .member-public-card .member-public-heading>.member-public-avatar,
 .member-public-card .member-public-heading>img.member-public-avatar,
 .member-public-card .member-public-heading>div.member-public-avatar{
   width:145px;
   height:175px;
   min-width:145px;
   border-radius:12px;
 }
}


/* Public profile portrait: restore the original local 2x zoom behavior. */
.member-public-card .member-public-heading > img.member-public-avatar{
  cursor:zoom-in;
  transition:transform .2s ease,box-shadow .2s ease;
}
.member-public-card .member-public-heading > img.member-public-avatar.is-zoomed{
  position:relative!important;
  z-index:20!important;
  transform:scale(2)!important;
  transform-origin:left center!important;
  cursor:zoom-out;
  box-shadow:0 10px 28px rgba(45,22,25,.35);
}


/* Simple default member portrait: one gold circular outline only. */
.member-avatar-emblem--card{position:relative;width:112px;height:112px;margin:0 auto 10px;overflow:visible;isolation:isolate}
.member-avatar-emblem--card .community-avatar,
.member-avatar-emblem--card .community-avatar-image{
 position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
 width:94px;height:94px;margin:0;z-index:1;border-radius:50%;object-fit:cover;
 border:0;box-shadow:none
}
.member-avatar-emblem--card .member-emblem{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none}
.member-avatar-emblem--card .member-emblem-svg{display:block;width:100%;height:100%;overflow:visible;filter:none}
.community-member-link,.community-member{overflow:visible}
@media(max-width:620px){
 .member-avatar-emblem--card{width:112px;height:112px;margin-bottom:9px}
 .member-avatar-emblem--card .community-avatar,.member-avatar-emblem--card .community-avatar-image{width:94px;height:94px}
}
 .member-avatar-emblem--card .community-avatar,.member-avatar-emblem--card .community-avatar-image{width:82px;height:82px}
}


/* Directory-card portrait zoom: 2x on hover and tap, isolated from profile layout. */
.member-avatar-emblem--card .community-avatar-image{
 transform:translate(-50%,-50%);
 transform-origin:center center;
 transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
 cursor:zoom-in;
}
.member-avatar-emblem--card .community-avatar-image:hover,
.member-avatar-emblem--card .community-avatar-image.is-zoomed{
 transform:translate(-50%,-50%) scale(2);
 z-index:12;
 border:3px solid #e9ad28;
 box-shadow:0 9px 24px rgba(35,20,20,.32);
 cursor:zoom-out;
}
.member-avatar-emblem--card:has(.community-avatar-image:hover) .member-emblem,
.member-avatar-emblem--card:has(.community-avatar-image.is-zoomed) .member-emblem{opacity:0}
.community-member:has(.member-avatar-emblem--card .community-avatar-image:hover),
.community-member.community-member--photo-zoomed{
  position:relative!important;
  z-index:9999!important;
  overflow:visible!important;
}
.member-avatar-emblem--card:has(.community-avatar-image.is-zoomed){
  position:relative!important;
  z-index:10000!important;
  overflow:visible!important;
}
.member-avatar-emblem--card .community-avatar-image.is-zoomed{
  position:absolute!important;
  z-index:10001!important;
  transform:translate(-50%,-50%) scale(2)!important;
  transform-origin:center center!important;
}
@media(prefers-reduced-motion:reduce){
 .member-avatar-emblem--card .community-avatar-image{transition:none}
}
#member-directory .community-members{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.community-member--placeholder{min-height:238px;align-items:center;justify-content:center;background:linear-gradient(180deg,#fff 0%,#faf8f5 100%);box-shadow:none;border-style:dashed;border-color:#e6ded2;pointer-events:none}
.community-placeholder-mark{width:76px;height:76px;border-radius:50%;background:#f1ede6;border:1px solid #e8dfd2;margin:10px auto 18px}
.community-placeholder-line{width:62%;height:10px;border-radius:8px;background:#f0ece6;margin:8px auto}
.community-placeholder-line.short{width:38%;height:8px}
@media(max-width:1000px){#member-directory .community-members{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#member-directory .community-members{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.community-member--placeholder{min-height:185px;padding:10px}.community-placeholder-mark{width:60px;height:60px}}


/* Mobile: restore full member-card information in a clean two-column layout. */
@media (max-width: 620px) {
  #member-directory .community-members {
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows:auto !important;
    align-items:start !important;
    gap:12px !important;
  }
  #member-directory .community-members > .community-member {
    display:flex !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    align-self:start !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    max-height:none !important;
    box-sizing:border-box !important;
    overflow:visible !important;
    padding:12px 8px !important;
    margin:0 !important;
    border-radius:13px !important;
  }
  #member-directory .community-member > .member-card-links {
    display:flex !important;
    flex:0 0 auto !important;
    width:100% !important;
    min-height:25px !important;
    height:auto !important;
    margin:0 0 7px !important;
    gap:4px !important;
    flex-wrap:wrap !important;
    justify-content:center !important;
  }
  #member-directory .community-member .member-social-icon {
    display:inline-flex !important;
    min-width:23px !important;
    height:23px !important;
    padding:0 4px !important;
    font-size:9px !important;
  }
  #member-directory .community-member > .community-member-link {
    display:flex !important;
    flex:0 0 auto !important;
    flex-direction:column !important;
    align-items:center !important;
    justify-content:flex-start !important;
    width:100% !important;
    height:auto !important;
    min-height:0 !important;
    gap:4px !important;
    overflow:visible !important;
  }
  #member-directory .community-member .member-avatar-emblem--card {
    flex:0 0 68px !important;
    width:68px !important;
    height:68px !important;
    min-height:68px !important;
    margin:2px auto 5px !important;
  }
  #member-directory .community-member .member-avatar-emblem--card .community-avatar,
  #member-directory .community-member .member-avatar-emblem--card .community-avatar-image {
    width:56px !important;
    height:56px !important;
    min-width:56px !important;
    min-height:56px !important;
    max-width:56px !important;
    max-height:56px !important;
  }
  #member-directory .community-member h3 {
    display:block !important;
    width:100% !important;
    max-height:none !important;
    margin:3px 0 !important;
    overflow-wrap:anywhere !important;
    font-size:12px !important;
    line-height:1.5 !important;
    text-align:center !important;
  }
  #member-directory .community-member .member-category {
    display:inline-flex !important;
    max-width:100% !important;
    margin:3px 0 !important;
    padding:3px 6px !important;
    font-size:9px !important;
    line-height:1.5 !important;
    white-space:normal !important;
  }
  #member-directory .community-member > .community-member-link > p {
    display:block !important;
    width:100% !important;
    max-height:none !important;
    margin:4px 0 !important;
    overflow:visible !important;
    font-size:10px !important;
    line-height:1.7 !important;
    overflow-wrap:anywhere !important;
  }
  #member-directory .community-member .community-member-joined {
    display:block !important;
    width:100% !important;
    margin:5px 0 0 !important;
    font-size:9px !important;
    line-height:1.6 !important;
    text-align:center !important;
  }
  #member-directory .community-member > .member-open-profile {
    display:inline-flex !important;
    flex:0 0 auto !important;
    width:100% !important;
    min-height:31px !important;
    height:auto !important;
    margin:8px 0 0 !important;
    padding:6px 4px !important;
    box-sizing:border-box !important;
    font-size:10px !important;
    line-height:1.4 !important;
    white-space:normal !important;
    text-align:center !important;
  }
  #member-directory .community-member .member-qr-deferred,
  #member-directory .community-member .member-card-qr {
    display:flex !important;
    flex:0 0 auto !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    max-width:100% !important;
    margin:8px auto 0 !important;
  }
  #member-directory .community-member .member-card-qr {
    padding:6px !important;
  }
  #member-directory .community-member .member-card-qr img {
    display:block !important;
    width:64px !important;
    height:64px !important;
  }
  #member-directory .community-member--placeholder {
    display:flex !important;
    height:auto !important;
    min-height:190px !important;
    max-height:none !important;
    align-self:start !important;
    justify-content:center !important;
    padding:12px 8px !important;
  }
  #member-directory .community-member--placeholder .community-placeholder-mark {
    width:48px !important;
    height:48px !important;
    margin:8px auto 10px !important;
  }
  #member-directory .community-member--placeholder .community-placeholder-line {
    height:6px !important;
    margin:6px auto !important;
  }
}


/* Collapsed community information cards on desktop and mobile. */
.community-about-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:22px}
.community-about-card{position:relative;min-width:0;padding:17px 18px}
.community-about-card h3{
  display:inline-block;max-width:calc(100% - 46px);margin:7px 0 0;
  vertical-align:middle;cursor:pointer;touch-action:manipulation;
  -webkit-tap-highlight-color:transparent
}
.community-about-card .community-about-number{vertical-align:middle}
.about-card-toggle{
  display:inline-flex;align-items:center;justify-content:center;
  position:absolute;left:14px;top:14px;width:32px;height:32px;
  border:1px solid var(--community-line);border-radius:50%;
  background:var(--community-gold-soft);color:var(--community-primary);
  font-size:22px;font-weight:500;line-height:1;cursor:pointer;
  -webkit-tap-highlight-color:transparent
}
.community-about-card ul{display:none;margin-top:12px;font-size:13px;line-height:1.9}
.community-about-card.is-expanded ul{display:block}
.community-about-card.is-expanded .about-card-toggle span{transform:rotate(45deg)}
.about-card-toggle span{display:block;transition:transform .18s ease}
.community-about-card h3[role="button"]:focus-visible{
  outline:2px solid rgba(189,150,80,.7);outline-offset:4px;border-radius:4px
}
@media(max-width:900px){
  .community-about-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .community-about-grid{grid-template-columns:1fr;gap:10px;margin-top:18px}
  .community-about-card{padding:15px 16px}
  .about-card-toggle{left:14px;top:15px;width:34px;height:34px}
  .community-about-card ul{font-size:13px}
}

/* Unified community page layout: one responsive rule set for member directory. */
#member-directory .community-members{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:14px}
#member-directory .community-member{min-width:0;align-self:start;box-sizing:border-box}
.community-category-panel{margin:0 0 20px;padding:17px 18px;border:1px solid var(--community-line);border-radius:12px;background:var(--community-surface)}
.community-category-panel h3{margin:0 0 12px;color:var(--community-primary-dark);font-size:16px;font-weight:850}
.community-filter-select-sr{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#membership-steps>ol{counter-reset:membership-step;list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:0;margin:18px 0}
#membership-steps>ol>li{position:relative;min-width:0;padding:15px 48px 15px 15px;border:1px solid var(--community-line);border-radius:11px;background:var(--community-surface);line-height:1.9}
#membership-steps>ol>li:before{counter-increment:membership-step;content:counter(membership-step);position:absolute;right:14px;top:16px;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--community-gold-soft);color:var(--community-primary);font-weight:850;font-size:12px}
@media(max-width:900px){#member-directory .community-members{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:620px){
 #member-directory .community-members{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
 .community-category-panel{padding:14px 12px}
 .community-category-panel h3{font-size:15px}
 #membership-steps>ol{grid-template-columns:1fr;gap:9px}
 #membership-steps>ol>li{padding:12px 44px 12px 12px;font-size:13px}
}


/* Directory cards: equal height regardless of how much profile data is available. */
#member-directory .community-members{
  grid-auto-rows:1fr !important;
  align-items:stretch !important;
}
#member-directory .community-members > .community-member{
  align-self:stretch !important;
  height:100% !important;
  min-height:0;
  box-sizing:border-box;
}
@media(max-width:620px){
  #member-directory .community-members{
    grid-auto-rows:1fr !important;
    align-items:stretch !important;
  }
  #member-directory .community-members > .community-member{
    align-self:stretch !important;
    height:100% !important;
    min-height:0 !important;
  }
}


/* Member directory cards: align portrait and text rows; place social links after QR. */
#member-directory .community-member{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
}
#member-directory .community-member > .community-member-link{
  display:flex;
  flex:0 0 auto;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  width:100%;
  height:auto;
}
#member-directory .community-member .member-avatar-emblem--card{
  flex:0 0 112px;
  width:112px;
  height:112px;
  margin:2px auto 8px;
}
#member-directory .community-member h3{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:42px;
  margin:3px 0;
}
#member-directory .community-member .member-category{
  min-height:25px;
  max-width:100%;
  box-sizing:border-box;
}
#member-directory .community-member > .community-member-link > p{
  display:flex;
  align-items:flex-start;
  justify-content:center;
  width:100%;
  min-height:48px;
  margin:5px 0;
}
#member-directory .community-member .community-member-joined{
  min-height:32px;
}
#member-directory .community-member > .member-qr-deferred,
#member-directory .community-member > .member-card-qr{
  flex:0 0 auto;
  margin:8px auto 0;
}
#member-directory .community-member > .member-card-links{
  order:10;
  flex:0 0 auto;
  width:100%;
  min-height:27px;
  margin:9px 0 0;
  justify-content:center;
}
@media(max-width:620px){
  #member-directory .community-member .member-avatar-emblem--card{
    flex-basis:68px;
    width:68px;
    height:68px;
    min-height:68px;
    margin:2px auto 5px;
  }
  #member-directory .community-member h3{min-height:36px}
  #member-directory .community-member > .community-member-link > p{min-height:48px}
  #member-directory .community-member .community-member-joined{min-height:30px}
  #member-directory .community-member > .member-card-links{margin-top:8px}
}


/* Fixed member-card system: profile content and vertical social rail. */
#member-directory .community-members{
  grid-auto-rows:1fr !important;
  align-items:stretch !important;
}
#member-directory .community-members > .community-member{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  align-self:stretch !important;
  height:100% !important;
  min-height:0 !important;
  box-sizing:border-box !important;
  padding:14px 12px !important;
  overflow:hidden !important;
}
#member-directory .community-member > .member-card-layout{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 30px !important;
  align-items:start !important;
  gap:8px !important;
  width:100% !important;
  min-width:0 !important;
  flex:1 0 auto !important;
}
#member-directory .community-member .community-member-link{
  display:flex !important;
  flex-direction:column !important;
  align-items:stretch !important;
  justify-content:flex-start !important;
  width:100% !important;
  min-width:0 !important;
  height:auto !important;
  gap:0 !important;
  overflow:hidden !important;
}
#member-directory .community-member .member-card-main{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:100% !important;
  min-height:174px !important;
  gap:5px !important;
}
#member-directory .community-member .member-avatar-emblem--card{
  flex:0 0 94px !important;
  width:94px !important;
  height:94px !important;
  min-height:94px !important;
  margin:0 auto 3px !important;
}
#member-directory .community-member .member-avatar-emblem--card .community-avatar,
#member-directory .community-member .member-avatar-emblem--card .community-avatar-image{
  width:76px !important;
  height:76px !important;
  min-width:76px !important;
  min-height:76px !important;
  max-width:76px !important;
  max-height:76px !important;
}
#member-directory .community-member .member-card-identity{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:flex-start !important;
  width:100% !important;
  min-height:70px !important;
  gap:4px !important;
}
#member-directory .community-member .member-card-identity h3{
  display:-webkit-box !important;
  width:100% !important;
  min-height:38px !important;
  max-height:38px !important;
  margin:0 !important;
  overflow:hidden !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:2 !important;
  line-height:1.55 !important;
  overflow-wrap:anywhere !important;
  text-align:center !important;
}
#member-directory .community-member .member-card-identity .member-category{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  min-height:25px !important;
  max-height:32px !important;
  max-width:100% !important;
  margin:0 !important;
  overflow:hidden !important;
  line-height:1.45 !important;
  text-align:center !important;
}
#member-directory .community-member .member-card-description{
  display:-webkit-box !important;
  width:100% !important;
  min-height:60px !important;
  max-height:60px !important;
  margin:7px 0 4px !important;
  overflow:hidden !important;
  -webkit-box-orient:vertical !important;
  -webkit-line-clamp:3 !important;
  line-height:1.7 !important;
  overflow-wrap:anywhere !important;
  text-align:center !important;
}
#member-directory .community-member .community-member-joined{
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:34px !important;
  max-height:34px !important;
  margin:3px 0 0 !important;
  overflow:hidden !important;
  font-size:10px !important;
  line-height:1.5 !important;
  text-align:center !important;
}
#member-directory .community-member .member-card-socials{
  display:flex !important;
  align-items:flex-start !important;
  justify-content:center !important;
  width:30px !important;
  min-width:30px !important;
  min-height:120px !important;
  padding-top:3px !important;
  box-sizing:border-box !important;
}
#member-directory .community-member .member-card-socials .member-card-links{
  display:flex !important;
  flex-direction:column !important;
  flex-wrap:nowrap !important;
  align-items:center !important;
  justify-content:flex-start !important;
  gap:5px !important;
  width:100% !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  direction:ltr !important;
}
#member-directory .community-member .member-card-socials .member-social-icon{
  display:inline-flex !important;
  flex:0 0 25px !important;
  align-items:center !important;
  justify-content:center !important;
  width:25px !important;
  min-width:25px !important;
  max-width:25px !important;
  height:25px !important;
  padding:0 !important;
  margin:0 !important;
  font-size:8px !important;
  line-height:1 !important;
}
#member-directory .community-member > .member-open-profile{
  display:flex !important;
  flex:0 0 34px !important;
  align-items:center !important;
  justify-content:center !important;
  width:100% !important;
  min-height:34px !important;
  max-height:34px !important;
  margin:9px 0 0 !important;
  padding:5px 4px !important;
  box-sizing:border-box !important;
  white-space:nowrap !important;
  font-size:10px !important;
}
#member-directory .community-member > .member-qr-deferred,
#member-directory .community-member > .member-card-qr{
  display:flex !important;
  flex:0 0 82px !important;
  align-items:center !important;
  justify-content:center !important;
  width:82px !important;
  height:82px !important;
  margin:8px auto 0 !important;
}
#member-directory .community-member > .member-card-qr img{
  display:block !important;
  width:66px !important;
  height:66px !important;
}
@media(max-width:620px){
  #member-directory .community-members{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    grid-auto-rows:1fr !important;
    gap:10px !important;
  }
  #member-directory .community-members > .community-member{
    padding:10px 7px !important;
  }
  #member-directory .community-member > .member-card-layout{
    grid-template-columns:minmax(0,1fr) 25px !important;
    gap:5px !important;
  }
  #member-directory .community-member .member-card-main{
    min-height:145px !important;
  }
  #member-directory .community-member .member-avatar-emblem--card{
    flex-basis:76px !important;
    width:76px !important;
    height:76px !important;
    min-height:76px !important;
  }
  #member-directory .community-member .member-avatar-emblem--card .community-avatar,
  #member-directory .community-member .member-avatar-emblem--card .community-avatar-image{
    width:60px !important;
    height:60px !important;
    min-width:60px !important;
    min-height:60px !important;
    max-width:60px !important;
    max-height:60px !important;
  }
  #member-directory .community-member .member-card-identity{
    min-height:64px !important;
  }
  #member-directory .community-member .member-card-identity h3{
    min-height:36px !important;
    max-height:36px !important;
    font-size:11px !important;
  }
  #member-directory .community-member .member-card-identity .member-category{
    min-height:23px !important;
    max-height:29px !important;
    padding:2px 4px !important;
    font-size:8px !important;
  }
  #member-directory .community-member .member-card-description{
    min-height:54px !important;
    max-height:54px !important;
    font-size:9px !important;
    line-height:1.65 !important;
  }
  #member-directory .community-member .community-member-joined{
    min-height:31px !important;
    max-height:31px !important;
    font-size:8px !important;
  }
  #member-directory .community-member .member-card-socials{
    width:25px !important;
    min-width:25px !important;
  }
  #member-directory .community-member .member-card-socials .member-social-icon{
    flex-basis:22px !important;
    width:22px !important;
    min-width:22px !important;
    max-width:22px !important;
    height:22px !important;
    font-size:7px !important;
  }
  #member-directory .community-member > .member-open-profile{
    font-size:9px !important;
  }
}

/* Ensure the native hidden state always wins over card display rules. */
#member-directory .community-member[hidden],
#member-directory .community-empty[hidden],
#member-directory .community-pagination[hidden]{
  display:none!important;
}

/* FIX: keep enlarged directory portraits above every card layer and outside clipped wrappers. */
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image:hover),
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image.is-zoomed){
  position:relative!important;
  z-index:100000!important;
  overflow:visible!important;
}
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image:hover) > .member-card-layout,
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image.is-zoomed) > .member-card-layout,
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image:hover) .community-member-link,
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image.is-zoomed) .community-member-link,
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image:hover) .member-card-main,
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image.is-zoomed) .member-card-main{
  position:relative!important;
  z-index:100001!important;
  overflow:visible!important;
}
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image:hover) .member-avatar-emblem--card,
#member-directory .community-member:has(.member-avatar-emblem--card .community-avatar-image.is-zoomed) .member-avatar-emblem--card{
  position:relative!important;
  z-index:100002!important;
  overflow:visible!important;
}
#member-directory .community-member .member-avatar-emblem--card .community-avatar-image.is-zoomed{
  position:absolute!important;
  z-index:100003!important;
  transform:translate(-50%,-50%) scale(2)!important;
  transform-origin:center center!important;
}

/* Community announcements and events */
.community-events{max-width:1104px;margin:24px auto 34px;padding:26px clamp(16px,3vw,30px);background:var(--community-surface);border:1px solid var(--community-line);border-radius:18px;box-shadow:var(--community-shadow)}
.community-events-heading{max-width:850px}.community-events-heading h2{margin:5px 0 10px;font-size:clamp(22px,3vw,30px);color:var(--community-primary-dark)}.community-events-heading>p:last-child{line-height:2;color:var(--community-muted);margin:0}
.community-events-nav{display:flex;gap:9px;flex-wrap:wrap;margin:22px 0 18px;padding-bottom:14px;border-bottom:1px solid var(--community-line)}
.community-events-nav button{border:1px solid var(--community-line);background:#fff;border-radius:999px;padding:9px 18px;color:var(--community-text);font:inherit;cursor:pointer}.community-events-nav button.active{background:var(--community-primary);border-color:var(--community-primary);color:#fff}
.community-event-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.community-event-card{min-width:0;display:flex;flex-direction:column;border:1px solid var(--community-line);border-radius:14px;overflow:hidden;background:#fff}
.community-event-poster{display:block;background:#f0ece7;max-height:340px;overflow:hidden;text-align:center}.community-event-poster img{display:block;width:100%;height:300px;object-fit:contain}
.community-event-no-poster{height:125px;display:grid;place-items:center;background:linear-gradient(135deg,#f5ecee,#eee6d9);font-size:30px;font-weight:800;color:var(--community-primary)}
.community-event-content{padding:16px;display:flex;flex-direction:column;gap:9px;flex:1}.community-event-type{align-self:flex-start;border-radius:20px;background:var(--community-gold-soft);color:#74551f;padding:4px 10px;font-size:12px}.community-event-content h3{margin:0;font-size:18px;color:var(--community-primary-dark)}.community-event-description{margin:0;line-height:1.9;color:var(--community-text);white-space:normal;overflow-wrap:anywhere}
.community-event-meta{display:flex;flex-wrap:wrap;gap:8px 14px;color:var(--community-muted);font-size:13px;margin-top:auto;padding-top:8px}.community-event-link{align-self:flex-start;color:var(--community-primary);font-weight:700;text-decoration:none;margin-top:6px}.community-event-archived{font-size:12px;color:#6d625d;background:#f0eeeb;padding:4px 9px;border-radius:20px;align-self:flex-start}
.community-events-empty,.community-events-loading{grid-column:1/-1;padding:22px;border:1px dashed var(--community-line);border-radius:12px;color:var(--community-muted);line-height:1.9}
@media(max-width:680px){.community-event-grid{grid-template-columns:1fr}.community-event-poster img{height:260px}.community-events{padding:20px 14px}}

/* Community event shortcuts below the main community banner */
.community-event-shortcuts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px auto 34px}
.community-event-shortcuts>a{display:flex;align-items:center;gap:12px;min-width:0;padding:17px 18px;border:1px solid var(--community-line);border-radius:15px;background:var(--community-surface);box-shadow:var(--community-shadow);color:var(--community-text);text-decoration:none;transition:transform .18s ease,border-color .18s ease}
.community-event-shortcuts>a:hover{transform:translateY(-2px);border-color:var(--community-primary)}
.community-event-shortcut-icon{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:var(--community-primary);color:#fff;font-size:22px}
.community-event-shortcuts>a>span:nth-child(2){display:flex;flex:1;flex-direction:column;gap:3px;min-width:0}
.community-event-shortcuts strong{font-size:15px;color:var(--community-primary-dark)}
.community-event-shortcuts small{font-size:11px;color:var(--community-muted);line-height:1.6}
.community-event-shortcut-arrow{font-size:19px;color:var(--community-primary)}
.community-events-page{margin-top:0}
.community-events-back{display:inline-flex;align-items:center;gap:8px;margin:18px 0;padding:9px 15px;border:1px solid var(--community-line);border-radius:999px;background:var(--community-surface);color:var(--community-primary);font-weight:700;text-decoration:none}
.community-events-nav a{display:inline-flex;align-items:center;border:1px solid var(--community-line);background:#fff;border-radius:999px;padding:9px 18px;color:var(--community-text);font:inherit;text-decoration:none}
.community-events-nav a.active{background:var(--community-primary);border-color:var(--community-primary);color:#fff}
@media(max-width:760px){.community-event-shortcuts{grid-template-columns:1fr;gap:10px;margin:16px auto 26px}.community-event-shortcuts>a{padding:13px 14px}.community-event-shortcut-icon{flex-basis:38px;width:38px;height:38px}}


/* Public member profile view counter */
.member-profile-views{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:fit-content;
  max-width:100%;
  margin:22px auto 4px;
  padding:9px 16px;
  border:1px solid var(--community-line);
  border-radius:999px;
  background:var(--community-paper);
  color:var(--community-muted);
  font-size:13px;
  font-weight:700;
  text-align:center;
  direction:rtl;
}
.member-profile-views::before{content:"◉";font-size:15px;color:var(--community-gold)}
.member-profile-views[data-counter-state="error"]{font-weight:500;color:var(--community-muted)}


/* FIX: show complete member names; let the identity row grow with wrapped text. */
#member-directory .community-member .member-card-identity{
  min-height:0 !important;
  height:auto !important;
  overflow:visible !important;
}
#member-directory .community-member .member-card-identity h3{
  display:block !important;
  width:100% !important;
  min-height:38px !important;
  max-height:none !important;
  height:auto !important;
  margin:0 !important;
  overflow:visible !important;
  -webkit-box-orient:initial !important;
  -webkit-line-clamp:unset !important;
  white-space:normal !important;
  overflow-wrap:anywhere !important;
  word-break:normal !important;
  line-height:1.55 !important;
  text-align:center !important;
}
#member-directory .community-member .member-card-main{
  min-height:0 !important;
  height:auto !important;
  overflow:visible !important;
}
#member-directory .community-member .community-member-link,
#member-directory .community-member > .member-card-layout{
  overflow:visible !important;
}


/* Allow a directory row to grow when a member has a particularly long name. */
#member-directory .community-members{
  grid-auto-rows:auto !important;
  align-items:stretch !important;
}
#member-directory .community-members > .community-member{
  height:auto !important;
  min-height:0 !important;
  overflow:visible !important;
}
@media(max-width:620px){
  #member-directory .community-members{
    grid-auto-rows:auto !important;
  }
  #member-directory .community-members > .community-member{
    height:auto !important;
    overflow:visible !important;
  }
}


/* Association board portrait */
.council-photo{
  display:block;
  object-fit:contain;
  object-position:center center;
  padding:4px;
  box-sizing:border-box;
  background:#f4f0eb;
}


/* Association council — founder designation and University of Tehran affiliation */
.council-member-founder{gap:8px}
.council-portrait-row{display:flex;align-items:center;justify-content:center;gap:9px;direction:rtl}
.council-portrait-row .council-avatar{margin:0;flex:0 0 auto}
.council-founder-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 8px;border:1px solid #e6d4ad;border-radius:999px;background:#f8f1e4;color:#765b2d;font-size:10px;font-weight:800;line-height:1.5;white-space:nowrap}
.council-affiliation{display:flex;align-items:center;justify-content:center;gap:6px;color:var(--community-muted);font-size:11px;font-weight:750;line-height:1.7}
.council-affiliation img{display:block;width:21px;height:21px;object-fit:contain;flex:0 0 21px}
@media(max-width:390px){.council-portrait-row{gap:6px}.council-founder-badge{padding:3px 6px;font-size:9px}.council-affiliation{font-size:10px}.council-affiliation img{width:19px;height:19px;flex-basis:19px}}




/* Association Board: four compact cards in one row */
.council-grid-featured{grid-template-columns:repeat(4,minmax(0,1fr));justify-items:stretch;gap:15px}
.council-member-art{width:auto;max-width:none;min-width:0;min-height:174px;padding:18px 12px;overflow:hidden;border:1px solid var(--community-line);border-radius:13px;background:var(--community-surface);box-shadow:0 5px 16px rgba(58,30,35,.045)}
.council-member-art:hover{border-color:#c9aa72;box-shadow:0 12px 25px rgba(58,30,35,.11);transform:none}
.council-card-art{display:block;width:auto;height:auto;max-width:100%;max-height:174px;margin:0 auto;border:0;border-radius:3px;object-fit:contain;box-shadow:none}
@media(max-width:760px){.council-grid-featured{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:390px){.council-grid-featured{gap:10px}.council-member-art{min-height:158px;padding:14px 8px}.council-card-art{max-height:158px}}


/* Four framed association board cards with compact founder profile content. */
.council-profile-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;align-items:stretch}
.council-profile-card{min-width:0;min-height:230px;padding:7px;box-sizing:border-box;background:transparent!important;border:0!important;box-shadow:none!important;overflow:hidden}
.council-profile-frame{width:100%;height:100%;min-height:216px;box-sizing:border-box;padding:14px 9px 10px;background-image:url('/frame_fixed.png');background-position:center;background-repeat:no-repeat;background-size:100% 100%;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:5px;text-align:center}
.council-profile-portrait{width:68px;height:68px;flex:0 0 68px;border-radius:50%;overflow:hidden;border:2px solid #c5a66a;background:#fff;box-shadow:0 2px 8px rgba(0,0,0,.12)}
.council-profile-portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:center top}
.council-profile-name{font-size:clamp(10px,1.1vw,14px);font-weight:800;line-height:1.5;color:#542b35}
.council-founder-badge{font-size:clamp(8px,.8vw,10px);padding:3px 7px;white-space:normal;text-align:center}
.council-profile-rank{font-size:clamp(8px,.85vw,10px);font-weight:700;line-height:1.45;color:#604c43}
.council-profile-card .council-affiliation{font-size:clamp(7px,.78vw,9px);line-height:1.4;gap:4px}
.council-profile-card .council-affiliation img{width:20px;height:20px;flex-basis:20px}
.council-profile-orcid{font-size:8px;line-height:1.3;color:#6b4c36;text-decoration:none;direction:ltr;overflow-wrap:anywhere}
.council-profile-empty .council-profile-frame{min-height:216px}
@media(max-width:760px){.council-profile-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.council-profile-card{min-height:205px;padding:5px}.council-profile-frame,.council-profile-empty .council-profile-frame{min-height:195px;padding:11px 7px 8px}.council-profile-portrait{width:58px;height:58px;flex-basis:58px}}
@media(max-width:390px){.council-profile-card{min-height:185px;padding:3px}.council-profile-frame,.council-profile-empty .council-profile-frame{min-height:179px;padding:9px 5px 6px}.council-profile-portrait{width:50px;height:50px;flex-basis:50px}.council-profile-name{font-size:10px}.council-profile-rank{font-size:8px}.council-profile-card .council-affiliation{font-size:7px}.council-profile-card .council-affiliation img{width:17px;height:17px;flex-basis:17px}}


/* Final refinements: show only the decorative frame and zoom the full circular portrait. */
.council-profile-card,
.council-profile-frame,
.council-profile-grid .council-member{
  background-color:transparent!important;
  border-color:transparent!important;
  box-shadow:none!important;
}
.council-profile-card{overflow:visible!important;position:relative}
.council-profile-frame{overflow:visible;position:relative}
.council-profile-portrait{
  position:relative;
  z-index:2;
  overflow:hidden;
  border-radius:50%;
  transform:translateZ(0);
  transform-origin:center center;
  transition:transform .22s ease,box-shadow .22s ease;
}
/* Enlarge founder/council portraits by 30% on desktop only; no neon/glow shadow. */
@media (hover:hover) and (pointer:fine) and (min-width:761px){
  .council-profile-portrait:hover{
    transform:scale(1.3);
    z-index:50;
    box-shadow:none;
  }
}
/* No portrait zoom on mobile or touch devices. */
@media (hover:none), (pointer:coarse), (max-width:760px){
  .council-profile-portrait,
  .council-profile-portrait:hover,
  .council-profile-portrait:active{
    transform:none !important;
    box-shadow:0 2px 8px rgba(0,0,0,.12);
  }
}
.council-profile-portrait img{border-radius:50%}


/* Force-load the decorative WebP frame; keep all card surfaces transparent. */
.council-profile-grid .council-profile-frame{
  background:url('/frame_fixed.png?v=20261113b') center center / 100% 100% no-repeat!important;
  background-color:transparent!important;
  min-height:216px;
}
.council-profile-grid .council-profile-card{
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
@media(max-width:760px){.council-profile-grid .council-profile-frame{min-height:195px}}
@media(max-width:390px){.council-profile-grid .council-profile-frame{min-height:179px}}


/* Founder card content hierarchy: portrait left, university seal right. */
.council-profile-frame{
  justify-content:flex-start!important;
  gap:6px!important;
  padding:13px 12px 11px!important;
  text-align:center;
}
.council-profile-symbols{
  direction:ltr;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  width:76%;
  max-width:170px;
  margin:0 auto 1px;
  flex:0 0 auto;
}
.council-profile-portrait,
.council-profile-university-logo{
  width:64px;
  height:64px;
  flex:0 0 64px;
  box-sizing:border-box;
  border-radius:50%;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  border:2px solid #c5a66a;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.12);
}
.council-profile-portrait img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center top;
}
.council-profile-university-logo img{
  display:block;
  width:78%;
  height:78%;
  object-fit:contain;
}
.council-profile-card .council-founder-badge{
  align-self:center;
  margin:0;
  flex:0 0 auto;
}
.council-profile-card .council-profile-name{
  width:100%;
  margin:0;
  padding:0 2px;
  font-size:clamp(11px,1.05vw,14px);
  line-height:1.55;
  text-align:center;
  overflow-wrap:anywhere;
}
.council-profile-divider{
  width:82%;
  height:1px;
  min-height:1px;
  margin:1px auto 2px;
  background:linear-gradient(to right,transparent,#b89a69 15%,#b89a69 85%,transparent);
  flex:0 0 auto;
}
.council-profile-details{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:flex-start;
  gap:4px;
  min-width:0;
}
.council-profile-card .council-profile-rank{
  width:100%;
  margin:0;
  font-size:clamp(9px,.88vw,11px);
  line-height:1.5;
  overflow-wrap:anywhere;
}
.council-profile-affiliation{
  width:100%;
  color:#604c43;
  font-size:clamp(8px,.78vw,10px);
  font-weight:650;
  line-height:1.55;
  overflow-wrap:anywhere;
}
.council-profile-card .council-profile-orcid{
  display:block;
  max-width:100%;
  font-size:8px;
  line-height:1.35;
  overflow-wrap:anywhere;
}
@media(max-width:760px){
  .council-profile-frame{padding:11px 8px 9px!important;gap:5px!important}
  .council-profile-symbols{width:82%;gap:8px}
  .council-profile-portrait,.council-profile-university-logo{width:56px;height:56px;flex-basis:56px}
  .council-profile-card .council-profile-name{font-size:11px}
  .council-profile-affiliation{font-size:8px}
}
@media(max-width:390px){
  .council-profile-symbols{width:88%;gap:6px}
  .council-profile-portrait,.council-profile-university-logo{width:49px;height:49px;flex-basis:49px}
  .council-profile-card .council-founder-badge{font-size:8px;padding:2px 6px}
  .council-profile-card .council-profile-name{font-size:10px}
  .council-profile-card .council-profile-rank{font-size:8px}
  .council-profile-affiliation{font-size:7px}
}


/* Reference-inspired horizontal founder card: portrait and badge on the left,
   identity and university details on the right. */
.council-profile-frame{
  display:flex!important;
  align-items:stretch!important;
  justify-content:center!important;
  padding:15px 12px!important;
  gap:10px!important;
  text-align:right!important;
}
.council-profile-layout{
  direction:ltr;
  display:grid;
  grid-template-columns:minmax(76px,34%) minmax(0,1fr);
  align-items:center;
  gap:10px;
  width:100%;
  min-width:0;
  height:100%;
}
.council-profile-left{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-width:0;
}
.council-profile-left .council-profile-portrait{
  width:clamp(64px,7vw,88px);
  height:clamp(64px,7vw,88px);
  flex:0 0 auto;
  border:3px solid #c5a052;
  box-shadow:0 0 0 3px rgba(255,255,255,.8),0 2px 9px rgba(75,45,15,.25);
}
.council-profile-left .council-founder-badge{
  align-self:center;
  font-size:clamp(8px,.72vw,10px);
  padding:4px 7px;
  white-space:nowrap;
  box-shadow:0 1px 4px rgba(80,50,10,.12);
}
.council-profile-right{
  direction:rtl;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:stretch;
  gap:7px;
  min-width:0;
  text-align:right;
}
.council-profile-right .council-profile-name{
  font-size:clamp(11px,1.1vw,16px);
  font-weight:850;
  line-height:1.55;
  color:#172d50;
  text-align:right;
  overflow-wrap:anywhere;
}
.council-profile-right .council-profile-divider{
  width:100%;
  margin:0;
  background:linear-gradient(to right,transparent,#b68b32 12%,#b68b32 88%,transparent);
}
.council-profile-role-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:7px;
  min-width:0;
}
.council-profile-right .council-profile-rank{
  flex:1 1 auto;
  font-size:clamp(9px,.9vw,12px);
  font-weight:750;
  line-height:1.6;
  color:#263d60;
  text-align:right;
}
.council-profile-university-logo{
  width:clamp(38px,4vw,54px);
  height:clamp(38px,4vw,54px);
  flex:0 0 auto;
  border:2px solid #c5a052;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  overflow:hidden;
  background:#fff;
  box-shadow:0 1px 5px rgba(0,0,0,.14);
}
.council-profile-university-logo img{
  display:block;
  width:82%;
  height:82%;
  object-fit:contain;
}
.council-profile-right .council-profile-affiliation{
  font-size:clamp(8px,.78vw,10px);
  font-weight:700;
  line-height:1.65;
  color:#463b3c;
  text-align:right;
}
.council-profile-right .council-profile-orcid{
  align-self:flex-start;
  font-size:8px;
  direction:ltr;
  text-align:left;
}
@media(max-width:760px){
  .council-profile-frame{padding:11px 8px!important;gap:7px!important}
  .council-profile-layout{grid-template-columns:minmax(58px,32%) minmax(0,1fr);gap:7px}
  .council-profile-left .council-profile-portrait{width:58px;height:58px}
  .council-profile-left .council-founder-badge{font-size:8px;padding:3px 5px}
  .council-profile-right{gap:5px}
  .council-profile-right .council-profile-name{font-size:11px}
  .council-profile-right .council-profile-rank{font-size:9px}
  .council-profile-university-logo{width:36px;height:36px}
  .council-profile-right .council-profile-affiliation{font-size:8px}
}
@media(max-width:390px){
  .council-profile-frame{padding:9px 6px!important}
  .council-profile-layout{grid-template-columns:minmax(50px,31%) minmax(0,1fr);gap:5px}
  .council-profile-left .council-profile-portrait{width:50px;height:50px}
  .council-profile-left .council-founder-badge{font-size:7px;padding:2px 4px}
  .council-profile-right .council-profile-name{font-size:10px}
  .council-profile-right .council-profile-rank{font-size:8px}
  .council-profile-university-logo{width:31px;height:31px}
  .council-profile-right .council-profile-affiliation{font-size:7px}
  .council-profile-right .council-profile-orcid{font-size:7px}
}


/* Founder card: full-width, ornate horizontal layout matching the supplied reference. */
#association-council .council-profile-grid{
  display:grid!important;
  grid-template-columns:minmax(0,1fr)!important;
  gap:0!important;
  max-width:1120px;
  margin-inline:auto;
}
#association-council .council-profile-empty{display:none!important}
#association-council .council-profile-card{
  grid-column:1/-1!important;
  width:100%!important;
  min-height:520px!important;
  padding:0!important;
  overflow:visible!important;
}
#association-council .council-profile-frame{
  width:100%!important;
  min-height:520px!important;
  height:auto!important;
  box-sizing:border-box!important;
  padding:48px 42px!important;
  background-image:url('/frame_fixed.png?v=20261113b')!important;
  background-position:center!important;
  background-size:100% 100%!important;
  background-repeat:no-repeat!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:visible!important;
}
#association-council .council-profile-layout{
  width:100%!important;
  min-height:390px!important;
  display:grid!important;
  grid-template-columns:minmax(290px,40%) minmax(0,1fr)!important;
  gap:34px!important;
  align-items:center!important;
  direction:ltr!important;
}
#association-council .council-profile-left{
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  gap:16px!important;
}
#association-council .council-profile-left .council-profile-portrait{
  width:clamp(230px,27vw,340px)!important;
  height:clamp(230px,27vw,340px)!important;
  flex:0 0 auto!important;
  border:8px double #bd8b24!important;
  outline:4px solid #f8e6ae!important;
  box-shadow:0 0 0 8px rgba(151,102,19,.35),0 8px 22px rgba(65,42,14,.28)!important;
}
#association-council .council-profile-left .council-profile-portrait img{
  width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 24%!important;
}
#association-council .council-profile-left .council-founder-badge{
  min-width:210px!important;
  padding:10px 24px!important;
  border:3px double #a87512!important;
  border-radius:22px!important;
  background:linear-gradient(180deg,#fff0a9 0%,#e8b83e 48%,#f9df83 100%)!important;
  color:#172d50!important;
  font-size:clamp(18px,2vw,27px)!important;
  font-weight:900!important;
  line-height:1.5!important;
  box-shadow:0 4px 10px rgba(93,57,8,.22),inset 0 1px 3px #fff8d9!important;
}
#association-council .council-profile-right{
  direction:rtl!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:stretch!important;
  justify-content:center!important;
  gap:20px!important;
  text-align:right!important;
}
#association-council .council-profile-right .council-profile-name{
  color:#172d50!important;
  font-size:clamp(30px,4vw,54px)!important;
  font-weight:900!important;
  line-height:1.5!important;
  text-align:right!important;
}
#association-council .council-profile-right .council-profile-divider{
  width:100%!important;height:3px!important;
  background:linear-gradient(90deg,transparent,#b88a24 12%,#e2b63e 50%,#b88a24 88%,transparent)!important;
}
#association-council .council-profile-role-row{
  display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px!important;
}
#association-council .council-profile-right .council-profile-rank{
  color:#172d50!important;
  font-size:clamp(22px,2.5vw,34px)!important;
  font-weight:850!important;
  line-height:1.6!important;
}
#association-council .council-profile-university-logo{
  width:clamp(92px,12vw,142px)!important;
  height:clamp(92px,12vw,142px)!important;
  flex:0 0 auto!important;
  border:4px solid #c8a34d!important;
  box-shadow:0 0 0 4px rgba(255,255,255,.85),0 3px 12px rgba(0,0,0,.18)!important;
}
#association-council .council-profile-university-logo img{width:82%!important;height:82%!important;object-fit:contain!important}
#association-council .council-profile-right .council-profile-affiliation{
  color:#172d50!important;
  font-size:clamp(17px,1.8vw,24px)!important;
  font-weight:750!important;
  line-height:2!important;
  text-align:right!important;
}
@media(max-width:760px){
  #association-council .council-profile-card{min-height:340px!important}
  #association-council .council-profile-frame{min-height:340px!important;padding:28px 22px!important}
  #association-council .council-profile-layout{min-height:270px!important;grid-template-columns:minmax(145px,37%) minmax(0,1fr)!important;gap:18px!important}
  #association-council .council-profile-left .council-profile-portrait{width:clamp(130px,25vw,190px)!important;height:clamp(130px,25vw,190px)!important;border-width:5px!important}
  #association-council .council-profile-left .council-founder-badge{min-width:130px!important;padding:7px 12px!important;font-size:17px!important}
  #association-council .council-profile-right{gap:12px!important}
  #association-council .council-profile-right .council-profile-name{font-size:clamp(21px,4vw,32px)!important}
  #association-council .council-profile-right .council-profile-rank{font-size:clamp(16px,2.7vw,22px)!important}
  #association-council .council-profile-university-logo{width:clamp(58px,10vw,82px)!important;height:clamp(58px,10vw,82px)!important}
  #association-council .council-profile-right .council-profile-affiliation{font-size:clamp(13px,2vw,17px)!important;line-height:1.8!important}
}
@media(max-width:480px){
  #association-council .council-profile-frame{min-height:300px!important;padding:24px 16px!important}
  #association-council .council-profile-layout{min-height:240px!important;grid-template-columns:minmax(112px,36%) minmax(0,1fr)!important;gap:12px!important}
  #association-council .council-profile-left .council-profile-portrait{width:112px!important;height:112px!important}
  #association-council .council-profile-left .council-founder-badge{min-width:104px!important;padding:5px 7px!important;font-size:13px!important}
  #association-council .council-profile-right{gap:9px!important}
  #association-council .council-profile-right .council-profile-name{font-size:19px!important}
  #association-council .council-profile-right .council-profile-rank{font-size:14px!important}
  #association-council .council-profile-university-logo{width:48px!important;height:48px!important;border-width:2px!important}
  #association-council .council-profile-right .council-profile-affiliation{font-size:11px!important;line-height:1.7!important}
}


/* Founder card: preserve the supplied 1503:1064 frame ratio so the portrait aperture stays circular. */
#association-council .council-profile-grid{display:block!important;max-width:1120px!important;margin-inline:auto!important}
#association-council .council-profile-card{display:block!important;width:100%!important;min-height:0!important;height:auto!important;padding:0!important;overflow:visible!important}
#association-council .council-profile-frame{
 position:relative!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;
 aspect-ratio:1503 / 1064!important;box-sizing:border-box!important;padding:0!important;overflow:hidden!important;
 background-image:url('/frame_fixed.png?v=20261113b')!important;background-position:center!important;
 background-repeat:no-repeat!important;background-size:100% 100%!important;
}
#association-council .council-profile-layout{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important}
#association-council .council-profile-left{
 position:absolute!important;left:7.2%!important;top:17.5%!important;width:36%!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;gap:1.2%!important;
}
#association-council .council-profile-left .council-profile-portrait{
 width:100%!important;height:auto!important;aspect-ratio:1/1!important;flex:0 0 auto!important;
 box-sizing:border-box!important;border:0!important;outline:0!important;border-radius:50%!important;
 overflow:hidden!important;background:transparent!important;box-shadow:none!important;
}
#association-council .council-profile-left .council-profile-portrait img{
 display:block!important;width:100%!important;height:100%!important;aspect-ratio:1/1!important;
 object-fit:cover!important;object-position:center 24%!important;border-radius:50%!important;
}
#association-council .council-profile-left .council-founder-badge{
 width:92%!important;min-width:0!important;margin-top:1%!important;padding:2.2% 3%!important;
 border:0!important;border-radius:0!important;background:transparent!important;color:#172d50!important;
 box-shadow:none!important;font-size:clamp(15px,2.1vw,27px)!important;line-height:1.3!important;white-space:nowrap!important;
}
#association-council .council-profile-right{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important}
#association-council .council-profile-right .council-profile-name{
 position:absolute!important;top:26%!important;right:11%!important;width:48%!important;margin:0!important;
 color:#172d50!important;font-size:clamp(22px,3.5vw,43px)!important;font-weight:900!important;
 line-height:1.45!important;text-align:center!important;
}
#association-council .council-profile-divider{display:none!important}
#association-council .council-profile-role-row{position:absolute!important;inset:0!important;display:block!important}
#association-council .council-profile-right .council-profile-rank{
 position:absolute!important;top:44%!important;right:24%!important;width:31%!important;color:#172d50!important;
 font-size:clamp(13px,1.9vw,23px)!important;font-weight:750!important;line-height:1.5!important;text-align:center!important;
}
#association-council .council-profile-university-logo{
 position:absolute!important;top:43%!important;right:5.8%!important;width:15%!important;height:auto!important;
 aspect-ratio:1/1!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;
}
#association-council .council-profile-university-logo img{width:100%!important;height:100%!important;object-fit:contain!important}
#association-council .council-profile-affiliation{display:none!important}
@media(max-width:600px){
 #association-council .council-profile-right .council-profile-name{font-size:clamp(17px,3.5vw,23px)!important}
 #association-council .council-profile-right .council-profile-rank{font-size:clamp(10px,1.9vw,14px)!important}
 #association-council .council-profile-left .council-founder-badge{font-size:clamp(11px,2vw,16px)!important}
}


/* Four compact ornate council cards in one row */
#association-council .council-profile-grid{
 display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:10px!important;
 width:100%!important;max-width:100%!important;margin:0 auto!important;align-items:stretch!important;
}
#association-council .council-profile-card{
 display:block!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;
 padding:0!important;overflow:visible!important;background:transparent!important;box-shadow:none!important;
}
#association-council .council-profile-frame{
 position:relative!important;display:block!important;width:100%!important;height:auto!important;min-height:0!important;
 aspect-ratio:1503 / 1064!important;padding:0!important;overflow:hidden!important;box-sizing:border-box!important;
 background-image:url('/frame_fixed.png?v=20261113b')!important;background-position:center!important;
 background-repeat:no-repeat!important;background-size:100% 100%!important;
}
#association-council .council-profile-layout{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;min-height:0!important}
#association-council .council-profile-left{
 position:absolute!important;left:7.1%!important;top:17.5%!important;width:36.5%!important;
 display:flex!important;flex-direction:column!important;align-items:center!important;gap:0!important;
}
#association-council .council-profile-left .council-profile-portrait{
 display:block!important;width:100%!important;height:auto!important;aspect-ratio:1/1!important;margin:0!important;
 border:0!important;outline:0!important;border-radius:50%!important;overflow:hidden!important;
 background:transparent!important;box-shadow:none!important;
}
#association-council .council-profile-left .council-profile-portrait img{
 display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;
 object-position:center 24%!important;border-radius:50%!important;
}
#association-council .council-profile-left .council-founder-badge{
 display:flex!important;align-items:center!important;justify-content:center!important;width:88%!important;height:10%!important;
 min-width:0!important;margin:2% 0 0!important;padding:0!important;border:0!important;border-radius:0!important;
 background:transparent!important;color:#172d50!important;box-shadow:none!important;
 font-size:clamp(9px,1vw,15px)!important;font-weight:900!important;line-height:1.2!important;white-space:nowrap!important;
}
#association-council .council-profile-right{
 position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;
 text-align:center!important;direction:rtl!important;
}
#association-council .council-profile-right .council-profile-name{
 position:absolute!important;top:26%!important;right:46%!important;width:49%!important;margin:0!important;
 color:#172d50!important;font-size:clamp(10px,1.28vw,18px)!important;font-weight:900!important;
 line-height:1.5!important;text-align:center!important;
}
#association-council .council-profile-divider{
 display:block!important;position:absolute!important;top:40%!important;right:47%!important;width:47%!important;height:2px!important;
 margin:0!important;background:linear-gradient(90deg,transparent,#b88a24 12%,#e2b63e 50%,#b88a24 88%,transparent)!important;
}
#association-council .council-profile-role-row{position:absolute!important;inset:0!important;display:block!important}
#association-council .council-profile-right .council-profile-rank{
 position:absolute!important;top:48%!important;right:47%!important;width:30%!important;color:#172d50!important;
 font-size:clamp(8px,.92vw,13px)!important;font-weight:800!important;line-height:1.5!important;text-align:center!important;
}
#association-council .council-profile-university-logo{
 position:absolute!important;top:44%!important;right:5.7%!important;width:15%!important;height:auto!important;aspect-ratio:1/1!important;
 margin:0!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;overflow:hidden!important;
}
#association-council .council-profile-university-logo img{display:block!important;width:100%!important;height:100%!important;object-fit:contain!important}
#association-council .council-profile-empty .council-profile-portrait,
#association-council .council-profile-empty .council-profile-university-logo{background:rgba(255,255,255,.22)!important}
#association-council .council-profile-empty .council-profile-left .council-founder-badge{visibility:hidden!important}
@media(max-width:760px){
 #association-council .council-profile-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}
 #association-council .council-profile-right .council-profile-name{font-size:clamp(7px,1.28vw,11px)!important}
 #association-council .council-profile-right .council-profile-rank{font-size:clamp(6px,.92vw,8px)!important}
 #association-council .council-profile-left .council-founder-badge{font-size:clamp(6px,1vw,9px)!important}
}


/* Final sizing: four reduced cards, kept on one horizontal row */
#association-council .council-profile-grid{
  display:grid!important;
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:8px!important;
  width:100%!important;
  max-width:920px!important;
  margin:0 auto!important;
}
#association-council .council-profile-card{
  width:100%!important;
  min-width:0!important;
  min-height:0!important;
}
#association-council .council-profile-frame{
  width:100%!important;
  aspect-ratio:1503 / 1064!important;
}
#association-council .council-profile-right .council-profile-name{
  font-size:clamp(9px,1.05vw,13px)!important;
}
#association-council .council-profile-right .council-profile-rank{
  font-size:clamp(7px,.72vw,10px)!important;
}
#association-council .council-profile-left .council-founder-badge{
  font-size:clamp(7px,.75vw,10px)!important;
}
@media(max-width:600px){
  #association-council .council-profile-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:3px!important;
    max-width:100%!important;
  }
  #association-council .council-profile-right .council-profile-name{
    font-size:clamp(6px,1.8vw,9px)!important;
  }
  #association-council .council-profile-right .council-profile-rank{
    font-size:clamp(5px,1.2vw,7px)!important;
  }
  #association-council .council-profile-left .council-founder-badge{
    font-size:clamp(5px,1.2vw,7px)!important;
  }
}

/* 2026-11-13: enforce four council cards in one row and restore visible profile text */
#association-council .council-profile-grid.council-grid-featured{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;width:100%!important;max-width:100%!important;margin:0 auto!important;align-items:stretch!important}
#association-council .council-profile-grid.council-grid-featured>.council-profile-card{display:block!important;grid-column:auto!important;width:100%!important;min-width:0!important;min-height:0!important;height:auto!important;margin:0!important;padding:0!important}
#association-council .council-profile-card .council-profile-frame{display:block!important;position:relative!important;width:100%!important;height:auto!important;min-height:0!important;aspect-ratio:1503/1064!important;padding:0!important;overflow:hidden!important;background-size:100% 100%!important}
#association-council .council-profile-card .council-profile-layout{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important}
#association-council .council-profile-card .council-profile-right{position:absolute!important;inset:0!important;display:block!important;width:100%!important;height:100%!important;z-index:2!important}
#association-council .council-profile-card .council-profile-name{display:block!important;position:absolute!important;top:25%!important;right:45%!important;width:49%!important;z-index:4!important;color:#172d50!important;font-size:clamp(9px,1.35vw,18px)!important;font-weight:900!important;line-height:1.5!important;text-align:center!important;white-space:normal!important;overflow-wrap:anywhere!important}
#association-council .council-profile-card .council-profile-divider{display:block!important;position:absolute!important;top:40%!important;right:46%!important;width:48%!important;height:2px!important;z-index:3!important}
#association-council .council-profile-card .council-profile-role-row{position:absolute!important;inset:0!important;display:block!important}
#association-council .council-profile-card .council-profile-rank{display:block!important;position:absolute!important;top:46%!important;right:47%!important;width:32%!important;z-index:4!important;color:#172d50!important;font-size:clamp(8px,1vw,14px)!important;font-weight:850!important;line-height:1.55!important;text-align:center!important;white-space:normal!important}
#association-council .council-profile-card .council-profile-university-logo{display:flex!important;position:absolute!important;top:43%!important;right:5.5%!important;width:15%!important;height:auto!important;aspect-ratio:1/1!important;overflow:hidden!important;border:0!important;border-radius:50%!important;background:transparent!important;box-shadow:none!important;z-index:4!important}
#association-council .council-profile-card .council-profile-university-logo img{display:block!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;object-position:center!important;border-radius:50%!important}
#association-council .council-profile-empty .council-profile-name,#association-council .council-profile-empty .council-profile-rank{display:none!important}
#association-council .council-profile-empty .council-profile-portrait,#association-council .council-profile-empty .council-profile-university-logo{background:transparent!important}
@media(max-width:760px){#association-council .council-profile-grid.council-grid-featured{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:4px!important}#association-council .council-profile-card .council-profile-name{font-size:clamp(8px,1.45vw,11px)!important}#association-council .council-profile-card .council-profile-rank{font-size:clamp(7px,1.05vw,9px)!important}#association-council .council-profile-card .council-founder-badge{font-size:clamp(6px,1vw,9px)!important}}

/* Correct the actual mobile rendering: show all four cards, keep text in right panel,
   and clip the university seal to its circular holder. */
#association-council .council-profile-grid.council-grid-featured{
 display:grid!important;
 grid-template-columns:repeat(4,minmax(0,1fr))!important;
 width:100%!important;max-width:100%!important;gap:5px!important;
}
#association-council .council-profile-grid.council-grid-featured>.council-profile-card{
 display:block!important;grid-column:auto!important;
}
#association-council .council-profile-grid .council-profile-empty{
 display:block!important;visibility:visible!important;
}
#association-council .council-profile-card .council-profile-name{
 top:25%!important;right:5%!important;left:auto!important;width:43%!important;
 text-align:center!important;font-size:clamp(7px,1.15vw,13px)!important;
 line-height:1.45!important;overflow-wrap:anywhere!important;
}
#association-council .council-profile-card .council-profile-divider{
 top:40%!important;right:5%!important;width:44%!important;
}
#association-council .council-profile-card .council-profile-rank{
 top:47%!important;right:6%!important;width:35%!important;
 text-align:center!important;font-size:clamp(6px,.9vw,11px)!important;
 line-height:1.45!important;
}
#association-council .council-profile-card .council-profile-university-logo{
 top:58%!important;right:7%!important;width:13%!important;height:auto!important;
 aspect-ratio:1/1!important;display:flex!important;align-items:center!important;justify-content:center!important;
 overflow:hidden!important;border-radius:50%!important;clip-path:circle(50%)!important;
}
#association-council .council-profile-card .council-profile-university-logo img{
 width:78%!important;height:78%!important;max-width:78%!important;max-height:78%!important;
 object-fit:contain!important;object-position:center!important;border-radius:50%!important;
}
#association-council .council-profile-empty .council-profile-name,
#association-council .council-profile-empty .council-profile-rank{display:none!important}
@media(max-width:760px){
 #association-council .council-profile-grid.council-grid-featured{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:3px!important}
 #association-council .council-profile-card .council-profile-name{font-size:clamp(6px,1.25vw,9px)!important}
 #association-council .council-profile-card .council-profile-rank{font-size:clamp(5px,1vw,7px)!important}
 #association-council .council-profile-card .council-profile-university-logo{width:14%!important;right:6%!important}
}

/* Final mobile card correction: separate rank text from the seal and keep the seal inside its printed ring */
#association-council .council-profile-card .council-profile-rank{
  top:47%!important;
  right:20%!important;
  width:28%!important;
  z-index:5!important;
  text-align:center!important;
  white-space:normal!important;
  overflow-wrap:normal!important;
  line-height:1.5!important;
}
#association-council .council-profile-card .council-profile-university-logo{
  top:43%!important;
  right:5.5%!important;
  width:15%!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  z-index:6!important;
}
#association-council .council-profile-card .council-profile-university-logo img{
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:100%!important;
  max-height:100%!important;
  object-fit:contain!important;
  object-position:center!important;
  border-radius:50%!important;
}
@media(max-width:760px){
  #association-council .council-profile-card .council-profile-rank{
    right:20%!important;width:28%!important;
    font-size:clamp(6px,1vw,8px)!important;
  }
  #association-council .council-profile-card .council-profile-university-logo{
    top:43%!important;right:5.5%!important;width:15%!important;
  }
}

/* Mobile council layout: exactly two cards per row */
@media(max-width:760px){
  #association-council .council-profile-grid.council-grid-featured{
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;
    width:100%!important;
    max-width:100%!important;
  }
  #association-council .council-profile-grid.council-grid-featured>.council-profile-card{
    width:100%!important;min-width:0!important;
  }
  #association-council .council-profile-card .council-profile-name{font-size:clamp(9px,2.2vw,13px)!important}
  #association-council .council-profile-card .council-profile-rank{font-size:clamp(7px,1.8vw,11px)!important}
}

/* Mobile final layout and typography: two cards per row; single-line name; contained seal */
@media (max-width: 760px) {
  #association-council .council-profile-grid.council-grid-featured {
    display:grid!important;
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    grid-auto-flow:row!important;
    column-gap:8px!important;
    row-gap:12px!important;
    width:100%!important;
    max-width:100%!important;
  }
  #association-council .council-profile-grid.council-grid-featured > article.council-profile-card {
    grid-column:auto!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
  }
  #association-council .council-profile-card .council-profile-name {
    top:25%!important;
    right:4%!important;
    left:auto!important;
    width:58%!important;
    max-width:58%!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:clip!important;
    overflow-wrap:normal!important;
    font-size:clamp(8px,2vw,13px)!important;
    line-height:1.3!important;
    text-align:center!important;
  }
  #association-council .council-profile-card .council-profile-rank {
    top:47%!important;
    right:20%!important;
    width:48%!important;
    max-width:48%!important;
    font-size:clamp(7px,1.7vw,11px)!important;
    line-height:1.35!important;
    text-align:center!important;
  }
  #association-council .council-profile-card .council-profile-university-logo {
    top:47%!important;
    right:5%!important;
    left:auto!important;
    width:clamp(26px,9%,42px)!important;
    min-width:0!important;
    max-width:42px!important;
    height:auto!important;
    aspect-ratio:1/1!important;
    padding:0!important;
    margin:0!important;
    box-sizing:border-box!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    overflow:hidden!important;
    border-radius:50%!important;
    clip-path:circle(50%)!important;
  }
  #association-council .council-profile-card .council-profile-university-logo img {
    display:block!important;
    width:100%!important;
    height:100%!important;
    max-width:100%!important;
    max-height:100%!important;
    object-fit:contain!important;
    object-position:center!important;
    border-radius:50%!important;
  }
}

/* Seal containment: keep the Tehran University mark smaller than its printed circular frame */
#association-council .council-profile-card .council-profile-university-logo{
  position:absolute!important;
  top:46%!important;
  right:7.2%!important;
  left:auto!important;
  width:9%!important;
  max-width:64px!important;
  min-width:0!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  box-sizing:border-box!important;
  padding:0!important;
  margin:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  background:transparent!important;
  box-shadow:none!important;
  z-index:6!important;
}
#association-council .council-profile-card .council-profile-university-logo img{
  display:block!important;
  width:82%!important;
  height:82%!important;
  max-width:82%!important;
  max-height:82%!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:50%!important;
}
@media(max-width:760px){
  #association-council .council-profile-card .council-profile-university-logo{
    width:9%!important;
    max-width:38px!important;
    top:46%!important;
    right:7.2%!important;
  }
}

/* Desktop pointer interaction: enlarge the hovered council card by 30% */
@media (hover:hover) and (pointer:fine){
  #association-council .council-profile-grid{
    overflow:visible!important;
  }
  #association-council .council-profile-card{
    position:relative!important;
    z-index:1!important;
    transform:scale(1)!important;
    transform-origin:center center!important;
    transition:transform .28s ease, box-shadow .28s ease!important;
    will-change:transform;
  }
  #association-council .council-profile-card:hover{
    transform:scale(1.3)!important;
    z-index:100!important;
    box-shadow:0 12px 28px rgba(48,20,25,.28)!important;
  }
}

/* Final alignment: keep rank on one line and center the university mark in its ring */
#association-council .council-profile-card .council-profile-rank{
  position:absolute!important;top:47%!important;right:22%!important;left:auto!important;
  width:66%!important;max-width:66%!important;white-space:nowrap!important;
  word-break:keep-all!important;overflow-wrap:normal!important;text-align:center!important;
  font-size:clamp(9px,1.15vw,15px)!important;line-height:1.2!important;
}
#association-council .council-profile-card .council-profile-university-logo{
  position:absolute!important;top:41%!important;right:4.4%!important;left:auto!important;
  width:19%!important;max-width:120px!important;min-width:0!important;height:auto!important;
  aspect-ratio:1/1!important;padding:0!important;margin:0!important;box-sizing:border-box!important;
  display:flex!important;align-items:center!important;justify-content:center!important;
  overflow:hidden!important;border:0!important;border-radius:50%!important;
  clip-path:circle(50%)!important;background:transparent!important;box-shadow:none!important;z-index:6!important;
}
#association-council .council-profile-card .council-profile-university-logo img{
  display:block!important;width:90%!important;height:90%!important;max-width:90%!important;max-height:90%!important;
  object-fit:contain!important;object-position:center!important;margin:auto!important;border:0!important;border-radius:50%!important;
}
@media(max-width:760px){
  #association-council .council-profile-card .council-profile-rank{
    top:47%!important;right:21%!important;width:69%!important;max-width:69%!important;
    font-size:clamp(7px,2.05vw,10px)!important;white-space:nowrap!important;line-height:1.15!important;
  }
  #association-council .council-profile-card .council-profile-university-logo{
    top:42%!important;right:3.5%!important;width:21%!important;max-width:76px!important;
  }
  #association-council .council-profile-card .council-profile-university-logo img{
    width:90%!important;height:90%!important;max-width:90%!important;max-height:90%!important;
  }
}


/* Mobile: keep the university title inside the text panel, below the divider,
   so it never extends over the portrait/photo. */
@media (max-width: 760px) {
  #association-council .council-profile-card .council-profile-rank {
    position: absolute !important;
    top: 62% !important;
    right: 4% !important;
    left: auto !important;
    width: 45% !important;
    max-width: 45% !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: center !important;
    font-size: clamp(6px, 1.65vw, 8px) !important;
    line-height: 1.2 !important;
    z-index: 7 !important;
  }
}


/* All screen sizes: place the university title fully in the right text panel,
   below the divider and below the seal; never across the portrait area. */
#association-council .council-profile-card .council-profile-rank {
  position: absolute !important;
  top: 62% !important;
  right: 4% !important;
  left: auto !important;
  width: 45% !important;
  max-width: 45% !important;
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow-wrap: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  text-align: center !important;
  font-size: clamp(7px, 1.05vw, 12px) !important;
  line-height: 1.2 !important;
  z-index: 7 !important;
}
@media (max-width: 760px) {
  #association-council .council-profile-card .council-profile-rank {
    font-size: clamp(6px, 1.65vw, 8px) !important;
  }
}


/* University logo: fill the complete white circular inset, edge to edge.
   The circular holder is the exact clipping boundary; the image fills it. */
#association-council .council-profile-card .council-profile-university-logo{
  position:absolute!important;
  top:41%!important;
  right:4.4%!important;
  left:auto!important;
  width:19%!important;
  max-width:120px!important;
  min-width:0!important;
  height:auto!important;
  aspect-ratio:1/1!important;
  box-sizing:border-box!important;
  padding:0!important;
  margin:0!important;
  display:block!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  background:#fff!important;
  box-shadow:none!important;
  z-index:8!important;
}
#association-council .council-profile-card .council-profile-university-logo img{
  display:block!important;
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  border-radius:50%!important;
}
@media(max-width:760px){
  #association-council .council-profile-card .council-profile-university-logo{
    top:42%!important;
    right:3.5%!important;
    width:21%!important;
    max-width:76px!important;
  }
}


/* Final correction: place the seal only in the printed circular aperture.
   Empty cards must not receive a white circle or a misplaced logo holder. */
#association-council .council-profile-empty .council-profile-university-logo{
  display:none!important;
}
#association-council .council-profile-university-logo-filled{
  position:absolute!important;
  top:43%!important;
  right:5.8%!important;
  left:auto!important;
  width:15%!important;
  height:auto!important;
  max-width:none!important;
  min-width:0!important;
  aspect-ratio:1 / 1!important;
  box-sizing:border-box!important;
  display:block!important;
  padding:0!important;
  margin:0!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  background:transparent!important;
  box-shadow:none!important;
  z-index:8!important;
}
#association-council .council-profile-university-logo-filled img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  padding:0!important;
  margin:0!important;
  object-fit:cover!important;
  object-position:center!important;
  border:0!important;
  border-radius:50%!important;
}


/* Council cards: support both pointer hover and explicit tap/click zoom */
#association-council,
#association-council .council-profile-grid{
  overflow:visible!important;
}
#association-council .council-profile-card{
  position:relative!important;
  z-index:1!important;
  transform:scale(1)!important;
  transform-origin:center center!important;
  transition:transform .28s ease, box-shadow .28s ease!important;
  will-change:transform;
  cursor:pointer;
}
#association-council .council-profile-card.is-zoomed{
  transform:scale(1.3)!important;
  z-index:100!important;
  box-shadow:0 12px 28px rgba(48,20,25,.28)!important;
}
@media (hover:hover) and (pointer:fine){
  #association-council .council-profile-card:hover{
    transform:scale(1.3)!important;
    z-index:100!important;
    box-shadow:0 12px 28px rgba(48,20,25,.28)!important;
  }
}


/* Portrait: keep every pixel inside the circular photo window and use the
   same pale blue as the source photo wherever the source has transparent gaps. */
#association-council .council-profile-left .council-profile-portrait{
  position:relative!important;
  display:block!important;
  overflow:hidden!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  border:0!important;
  outline:0!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  background:transparent!important;
  isolation:isolate!important;
}
#association-council .council-profile-left .council-profile-portrait img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center 24%!important;
  border:0!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
}

/* Enlarge the university seal slightly so it fills the printed circular
   aperture without crossing its edge. */
#association-council .council-profile-university-logo-filled{
  width:17%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  right:4.8%!important;
  top:42.2%!important;
  overflow:hidden!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  background:transparent!important;
}
#association-council .council-profile-university-logo-filled img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  max-height:none!important;
  object-fit:cover!important;
  object-position:center!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
}


/* Match the exact 1503 × 1064 council-card artwork supplied as the reference.
   The portrait and seal are aligned to the printed circular openings. */
#association-council .council-profile-card .council-profile-frame{
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1503 / 1064!important;
  background-size:100% 100%!important;
  background-position:center!important;
}
#association-council .council-profile-card .council-profile-left{
  left:6.8%!important;
  top:18.2%!important;
  width:35.8%!important;
}
#association-council .council-profile-card .council-profile-left .council-profile-portrait{
  width:100%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  border:0!important;
  outline:0!important;
  border-radius:50%!important;
  overflow:hidden!important;
  clip-path:circle(50%)!important;
  background:#c9d9e9!important;
}
#association-council .council-profile-card .council-profile-left .council-profile-portrait img{
  position:absolute!important;
  inset:0!important;
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center 24%!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
}
#association-council .council-profile-card .council-profile-left .council-founder-badge{
  width:88%!important;
  margin:1.5% 0 0!important;
}
#association-council .council-profile-card .council-profile-university-logo-filled{
  top:42.7%!important;
  right:7.2%!important;
  width:14.3%!important;
  height:auto!important;
  aspect-ratio:1 / 1!important;
  overflow:hidden!important;
  border:0!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  background:transparent!important;
}
#association-council .council-profile-card .council-profile-university-logo-filled img{
  position:absolute!important;
  inset:8%!important;
  width:84%!important;
  height:84%!important;
  max-width:84%!important;
  max-height:84%!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
}


/* Council member names: always one line on desktop and mobile. */
#association-council .council-profile-card .council-profile-name{
  white-space:nowrap!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
  width:58%!important;
  max-width:58%!important;
  overflow:hidden!important;
  text-overflow:clip!important;
  font-size:clamp(6px,1vw,12px)!important;
  line-height:1.25!important;
  letter-spacing:-.035em!important;
}
@media(max-width:760px){
  #association-council .council-profile-card .council-profile-name{
    white-space:nowrap!important;
    width:58%!important;
    max-width:58%!important;
    font-size:clamp(5px,1.35vw,8px)!important;
    line-height:1.2!important;
    letter-spacing:-.045em!important;
  }
}


/* Seal sizing correction: keep the university mark comfortably inside the
   printed beaded aperture on both desktop and mobile. Preserve its center
   while reducing the visible seal; never scale it beyond the circular holder. */
#association-council .council-profile-card .council-profile-university-logo-filled{
  width:11.5%!important;
  right:10%!important;
  top:44.1%!important;
  aspect-ratio:1/1!important;
  overflow:hidden!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
  background:transparent!important;
}
#association-council .council-profile-card .council-profile-university-logo-filled img{
  position:absolute!important;
  inset:5%!important;
  width:90%!important;
  height:90%!important;
  max-width:90%!important;
  max-height:90%!important;
  object-fit:contain!important;
  object-position:center!important;
  border:0!important;
  border-radius:50%!important;
  clip-path:circle(50%)!important;
}
@media(max-width:760px){
  #association-council .council-profile-card .council-profile-university-logo-filled{
    width:11.5%!important;
    right:10%!important;
    top:44.1%!important;
  }
}


/* Founder card: use the supplied finished royal card artwork as one
   proportional image; disable the previous layered portrait/logo/text layout. */
#association-council .council-profile-image-card{
  display:block!important;
  padding:0!important;
  overflow:hidden!important;
  aspect-ratio:3 / 2!important;
  height:auto!important;
  min-height:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#association-council .council-profile-image-card .council-profile-card-art{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:3 / 2!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
}


/* Empty council positions: display the supplied blank royal card artwork. */
#association-council .council-profile-blank-card{
  display:block!important;
  padding:0!important;
  overflow:hidden!important;
  aspect-ratio:3 / 2!important;
  height:auto!important;
  min-height:0!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
#association-council .council-profile-blank-card .council-profile-card-art{
  display:block!important;
  width:100%!important;
  height:auto!important;
  aspect-ratio:3 / 2!important;
  object-fit:contain!important;
  object-position:center!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
}



/* Match the outer council section background to the community page paper tone */
#association-council{background:var(--community-paper)!important;}
#association-council .council-profile-grid,
#association-council .council-profile-card{background:transparent!important;}


/* Slightly strengthen each membership group's original individual card color */
.community-member--student{background:#eadcfb;border-color:#c8a9ed}
.community-member--graduate{background:#ccefe8;border-color:#91d7ca}
.community-member--faculty{background:#beddb8;border-color:#8fbd88}
.community-member--researcher{background:#d7e7fb;border-color:#abc9ef}
.community-member--translator{background:#fff1c5;border-color:#e5d17a}
.community-member--culture{background:#fbe0e0;border-color:#eab0b0}
.community-member--honorary{background:#ffe0e3;border-color:#e58b98}

/* Enforce membership category colors on rendered directory cards */
#member-directory .community-members > .community-member.community-member--student{
  background:#eadcfb!important;
  background-color:#eadcfb!important;
  border-color:#c8a9ed!important;
}
#member-directory .community-members > .community-member.community-member--graduate{
  background:#ccefe8!important;
  background-color:#ccefe8!important;
  border-color:#91d7ca!important;
}
#member-directory .community-members > .community-member.community-member--faculty{
  background:#beddb8!important;
  background-color:#beddb8!important;
  border-color:#8fbd88!important;
}
#member-directory .community-members > .community-member.community-member--researcher{
  background:#d7e7fb!important;
  background-color:#d7e7fb!important;
  border-color:#abc9ef!important;
}
#member-directory .community-members > .community-member.community-member--translator{
  background:#fff1c5!important;
  background-color:#fff1c5!important;
  border-color:#e5d17a!important;
}
#member-directory .community-members > .community-member.community-member--culture{
  background:#fbe0e0!important;
  background-color:#fbe0e0!important;
  border-color:#eab0b0!important;
}
#member-directory .community-members > .community-member.community-member--honorary{
  background:#ffe0e3!important;
  background-color:#ffe0e3!important;
  border-color:#e58b98!important;
}

/* Collapsible membership review steps, closed by default */
.membership-steps-accordion{
  border:1px solid var(--community-line);
  border-radius:12px;
  background:var(--community-surface);
  box-shadow:0 5px 16px rgba(58,30,35,.04);
  overflow:hidden;
}
.membership-steps-accordion>summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:17px 20px;
  color:var(--community-primary-dark);
  font-size:18px;
  font-weight:850;
  line-height:1.7;
  cursor:pointer;
  list-style:none;
}
.membership-steps-accordion>summary::-webkit-details-marker{display:none}
.membership-steps-toggle{
  display:grid;
  place-items:center;
  flex:0 0 30px;
  width:30px;
  height:30px;
  border:1px solid #d8c49d;
  border-radius:50%;
  background:var(--community-gold-soft);
  color:var(--community-primary);
}
.membership-steps-toggle::before{
  content:"+";
  font-size:22px;
  font-weight:500;
  line-height:1;
}
.membership-steps-accordion[open] .membership-steps-toggle::before{content:"−"}
.membership-steps-content{padding:0 22px 20px}
.membership-steps-content ol{margin:0;padding:0 22px 0 0;line-height:2.1}
.membership-steps-content li{padding:4px 0;color:var(--community-text)}



/* On mobile, the section title is also a direct accordion control. */
@media(max-width:700px){
  .community-about-card h3[role="button"]{cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
  .community-about-card h3[role="button"]:focus-visible{outline:2px solid rgba(189,150,80,.7);outline-offset:4px;border-radius:4px}
}

/* Community information cards: expanded by default on desktop and tablet;
   accordion interaction is reserved for mobile screens only. */
@media (min-width:701px){
  .community-about-card ul,
  .community-about-card.is-expanded ul{
    display:block!important;
  }
  .community-about-card .about-card-toggle{
    display:none!important;
  }
  .community-about-card h3[role="button"]{
    cursor:default!important;
  }
}
@media (max-width:700px){
  .community-about-card ul{
    display:none!important;
  }
  .community-about-card.is-expanded ul{
    display:block!important;
  }
  .community-about-card .about-card-toggle{
    display:inline-flex!important;
  }
}

/* Community refinements: clearer membership entry, directory and review accordion */
.membership-entry-actions{align-items:stretch;gap:10px}
.membership-entry-actions .membership-entry-apply,.membership-entry-actions .membership-entry-login{display:flex;align-items:center;justify-content:flex-start;gap:11px;min-width:190px;min-height:58px;padding:10px 15px;text-align:start}
.membership-entry-actions .membership-entry-symbol{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:rgba(255,255,255,.16);font-size:20px;line-height:1}
.membership-entry-actions .membership-entry-apply>span:last-child,.membership-entry-actions .membership-entry-login>span:last-child{display:flex;flex-direction:column;gap:2px}
.membership-entry-actions .membership-entry-apply strong,.membership-entry-actions .membership-entry-login strong{font-size:13px;line-height:1.5}
.membership-entry-actions .membership-entry-apply small,.membership-entry-actions .membership-entry-login small{font-size:10px;font-weight:500;opacity:.82;line-height:1.5}
.community-directory-intro{max-width:850px;margin:-5px 0 18px;color:var(--community-muted);font-size:14px;line-height:1.9}
.community-results-count{display:inline-flex;align-items:center;min-height:38px;padding:7px 12px;border:1px solid #e3d6c2;border-radius:8px;background:#faf6ed;color:var(--community-primary);font-size:12px;font-weight:800;white-space:nowrap}
.membership-steps-accordion{overflow:hidden;border:1px solid var(--community-line);border-radius:12px;background:var(--community-surface);box-shadow:var(--community-shadow)}
.membership-steps-accordion>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;color:var(--community-primary);font-weight:850;cursor:pointer;list-style:none}
.membership-steps-accordion>summary::-webkit-details-marker{display:none}
.membership-steps-accordion[open]>summary{border-bottom:1px solid var(--community-line);background:#faf6ed}
.membership-steps-content{padding:18px 22px}
.membership-steps-content ol{margin:0;padding-inline-start:24px;line-height:2}
.membership-steps-content li{padding:5px 0}
.membership-steps-content .community-actions{margin-top:16px}
@media(max-width:760px){.membership-entry-actions{display:grid!important;grid-template-columns:1fr 1fr!important}.membership-entry-actions .membership-entry-apply,.membership-entry-actions .membership-entry-login{min-width:0;width:100%;box-sizing:border-box}.membership-entry-actions .community-admin-link{grid-column:1/-1}.community-results-count{width:100%;justify-content:center}}
@media(max-width:420px){.membership-entry-actions{grid-template-columns:1fr!important}.membership-entry-actions .community-admin-link{grid-column:auto}}


/* Live association statistics */
.community-stats{
  margin:18px auto 24px;
  padding:22px 24px 18px;
  border:1px solid var(--community-line);
  border-radius:16px;
  background:linear-gradient(115deg,#fffefa 0%,#f8f2e8 100%);
  box-shadow:0 7px 22px rgba(58,30,35,.045)
}
.community-stats h2{
  margin:0 0 5px;
  color:var(--community-primary-dark);
  font-size:20px;
  font-weight:850
}
.community-stats-intro{
  margin:0 0 17px;
  color:var(--community-muted);
  font-size:13px;
  line-height:1.8
}
.community-stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px
}
.community-stat-card{
  display:flex;
  min-width:0;
  min-height:112px;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:13px 10px;
  border:1px solid #eadfce;
  border-radius:12px;
  background:rgba(255,255,255,.82);
  text-align:center
}
.community-stat-icon{font-size:19px;line-height:1.2}
.community-stat-card strong{
  color:var(--community-primary);
  font-size:26px;
  font-weight:900;
  line-height:1.25;
  font-variant-numeric:tabular-nums
}
.community-stat-card>span:last-child{
  color:var(--community-muted);
  font-size:11px;
  font-weight:700;
  line-height:1.6
}
.community-stats-note{
  margin:12px 0 0;
  color:var(--community-muted);
  font-size:10px;
  line-height:1.7
}

/* Clearer hierarchy and consistent rhythm for mission and purpose cards */
.community-about-card{
  position:relative;
  display:flex;
  flex-direction:column;
  align-items:stretch;
  min-height:100%;
  border-top:3px solid var(--community-gold);
  transition:box-shadow .18s ease,border-color .18s ease
}
.community-about-card:hover{
  border-color:#d8c49d;
  border-top-color:var(--community-primary);
  box-shadow:0 9px 23px rgba(58,30,35,.07)
}
.community-about-card h3{
  min-height:48px;
  padding-inline-end:2px;
  padding-inline-start:38px;
  line-height:1.75
}
.community-about-card ul{flex:1}
.community-about-card li::marker{color:#b38b43}
.community-about-card .about-card-toggle{
  z-index:1;
  width:34px;
  height:34px;
  border-color:#ddc99f;
  background:#fbf4e6
}
.community-about-card .about-card-toggle:focus-visible{
  outline:2px solid var(--community-gold);
  outline-offset:3px
}
.community-vision{
  background:linear-gradient(110deg,#f5f0e8 0%,#eee7dc 100%);
  box-shadow:0 5px 16px rgba(58,30,35,.035)
}
@media(max-width:900px){
  .community-stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .community-stats{margin:14px 13px 20px;padding:18px 14px 14px}
  .community-stats h2{font-size:19px}
  .community-stats-grid{gap:9px}
  .community-stat-card{min-height:100px;padding:10px 7px}
  .community-stat-card strong{font-size:23px}
  .community-stat-card>span:last-child{font-size:10px}
  .community-about-card{min-height:0}
  .community-about-card h3{min-height:0;padding-inline-start:42px;margin:7px 0 4px}
}
@media(max-width:360px){
  .community-stats-grid{grid-template-columns:1fr 1fr}
  .community-stat-card{min-height:92px}
}
@media(prefers-reduced-motion:reduce){
  .community-about-card{transition:none}
}


/* Soft pastel palette for the four community information cards.
   Dark text and headings are retained for comfortable reading. */
.community-about-grid>.community-about-card:nth-child(1){
  background:#fdf0ed!important;
  border-color:#efd0c8!important;
  border-top-color:#d99b8d!important;
}
.community-about-grid>.community-about-card:nth-child(2){
  background:#edf4fc!important;
  border-color:#d0dfef!important;
  border-top-color:#91b4d8!important;
}
.community-about-grid>.community-about-card:nth-child(3){
  background:#eef5eb!important;
  border-color:#d2e2ca!important;
  border-top-color:#9dbd8e!important;
}
.community-about-grid>.community-about-card:nth-child(4){
  background:#f3effa!important;
  border-color:#ded2ef!important;
  border-top-color:#b29bd5!important;
}
.community-about-grid>.community-about-card:nth-child(1) .community-about-number{
  background:#f7dfd8;color:#75463d;
}
.community-about-grid>.community-about-card:nth-child(2) .community-about-number{
  background:#dceafa;color:#345879;
}
.community-about-grid>.community-about-card:nth-child(3) .community-about-number{
  background:#dfeeda;color:#45653d;
}
.community-about-grid>.community-about-card:nth-child(4) .community-about-number{
  background:#e8def6;color:#5d477c;
}
.community-about-grid>.community-about-card ul{color:#51494a}
.community-about-grid>.community-about-card li::marker{color:#77615e}
@media(hover:hover){
  .community-about-grid>.community-about-card:nth-child(1):hover{background:#fbe9e4!important}
  .community-about-grid>.community-about-card:nth-child(2):hover{background:#e5effa!important}
  .community-about-grid>.community-about-card:nth-child(3):hover{background:#e7f1e2!important}
  .community-about-grid>.community-about-card:nth-child(4):hover{background:#eee7f7!important}
}


/* Glossy, raised member-directory cards; preserve each membership group's pastel color. */
#member-directory .community-members>.community-member{
  position:relative;
  isolation:isolate;
  overflow:visible;
  border-width:1px!important;
  box-shadow:
    0 2px 5px rgba(48,35,42,.055),
    0 9px 18px rgba(48,35,42,.105),
    0 17px 30px rgba(48,35,42,.055),
    inset 0 1px 0 rgba(255,255,255,.88),
    inset 0 -1px 0 rgba(90,70,80,.06)!important;
  transition:transform .24s cubic-bezier(.2,.75,.25,1),box-shadow .24s ease,filter .24s ease;
}
#member-directory .community-members>.community-member::before{
  content:"";
  position:absolute;
  z-index:0;
  inset:0;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(145deg,rgba(255,255,255,.48) 0%,rgba(255,255,255,.16) 24%,transparent 58%,rgba(255,255,255,.12) 100%);
}
#member-directory .community-members>.community-member>*{
  position:relative;
  z-index:1;
}
@media(hover:hover) and (pointer:fine){
  #member-directory .community-members>.community-member:hover{
    z-index:10;
    transform:scale(1.2);
    box-shadow:
      0 5px 10px rgba(48,35,42,.07),
      0 17px 32px rgba(48,35,42,.16),
      0 28px 46px rgba(48,35,42,.09),
      inset 0 1px 0 rgba(255,255,255,.96),
      inset 0 -1px 0 rgba(90,70,80,.07)!important;
    filter:saturate(1.04) brightness(1.015);
  }
}
@media(hover:none){
  #member-directory .community-members>.community-member:active{
    box-shadow:0 5px 12px rgba(48,35,42,.12),inset 0 1px 0 rgba(255,255,255,.9)!important;
  }
}
@media(prefers-reduced-motion:reduce){
  #member-directory .community-members>.community-member{transition:none}
}


/* Restore the four pastel mission cards explicitly; this styling is independent
   of the member-directory card effects above. */
.community-about-grid > article.community-about-card:nth-child(1){
  background-color:#fdf0ed!important;
  border-color:#efd0c8!important;
  border-top-color:#d99b8d!important;
}
.community-about-grid > article.community-about-card:nth-child(2){
  background-color:#edf4fc!important;
  border-color:#d0dfef!important;
  border-top-color:#91b4d8!important;
}
.community-about-grid > article.community-about-card:nth-child(3){
  background-color:#eef5eb!important;
  border-color:#d2e2ca!important;
  border-top-color:#9dbd8e!important;
}
.community-about-grid > article.community-about-card:nth-child(4){
  background-color:#f3effa!important;
  border-color:#ded2ef!important;
  border-top-color:#b29bd5!important;
}
.community-about-grid > article.community-about-card:nth-child(1) .community-about-number{background:#f7dfd8!important;color:#75463d!important}
.community-about-grid > article.community-about-card:nth-child(2) .community-about-number{background:#dceafa!important;color:#345879!important}
.community-about-grid > article.community-about-card:nth-child(3) .community-about-number{background:#dfeeda!important;color:#45653d!important}
.community-about-grid > article.community-about-card:nth-child(4) .community-about-number{background:#e8def6!important;color:#5d477c!important}
@media(hover:hover) and (pointer:fine){
  .community-about-grid > article.community-about-card:nth-child(1):hover{background-color:#fbe9e4!important}
  .community-about-grid > article.community-about-card:nth-child(2):hover{background-color:#e5effa!important}
  .community-about-grid > article.community-about-card:nth-child(3):hover{background-color:#e7f1e2!important}
  .community-about-grid > article.community-about-card:nth-child(4):hover{background-color:#eee7f7!important}
}


/* Final priority fix: the fixed card layout declared overflow:hidden!important.
   Override it so the glossy edge and 20% hover enlargement remain visible. */
#member-directory .community-members > article.community-member{
  overflow:visible!important;
  transform-origin:center center;
  box-shadow:
    0 3px 7px rgba(48,35,42,.10),
    0 11px 22px rgba(48,35,42,.13),
    0 20px 34px rgba(48,35,42,.07),
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 -1px 0 rgba(75,55,65,.08)!important;
}
#member-directory .community-members > article.community-member::before{
  border-radius:inherit;
  background:linear-gradient(135deg,rgba(255,255,255,.62) 0%,rgba(255,255,255,.22) 30%,transparent 62%,rgba(255,255,255,.18) 100%)!important;
}
@media(hover:hover) and (pointer:fine){
  #member-directory .community-members > article.community-member:hover{
    z-index:30!important;
    transform:scale(1.2)!important;
    box-shadow:
      0 7px 13px rgba(48,35,42,.12),
      0 20px 36px rgba(48,35,42,.19),
      0 32px 52px rgba(48,35,42,.11),
      inset 0 1px 0 rgba(255,255,255,1),
      inset 0 -1px 0 rgba(75,55,65,.09)!important;
    filter:saturate(1.06) brightness(1.02);
  }
}


/* Subtle press feedback for member cards on touch screens. */
@media(hover:none) and (pointer:coarse){
  #member-directory .community-members > article.community-member:active{
    z-index:30!important;
    transform:scale(1.045)!important;
    box-shadow:
      0 5px 10px rgba(48,35,42,.11),
      0 14px 25px rgba(48,35,42,.16),
      inset 0 1px 0 rgba(255,255,255,.98)!important;
    filter:saturate(1.04) brightness(1.015);
    transition:transform .12s ease,box-shadow .12s ease,filter .12s ease;
  }
}


/* Samarkand State University mark: enlarge only this logo within its existing
   circular holder so the artwork fills the available area without changing
   the size or position of other university marks. */
#association-council .council-profile-university-logo-filled img[src*="Samarkand.jpg"]{
  transform:scale(1.38)!important;
  transform-origin:center center!important;
  object-fit:cover!important;
  object-position:center!important;
}


/* Association pages: retain the journal's full navigation while omitting its heavy masthead. */
.community-nav-header{
  min-height:48px!important;
  height:auto!important;
  padding:0!important;
  background:#faf7ec!important;
  box-shadow:none!important;
}
.community-nav-header .header-inner{
  min-height:48px!important;
  height:auto!important;
  flex-wrap:wrap!important;
  padding-top:4px!important;
  padding-bottom:4px!important;
}
.community-nav-header .rls-site-banner,
.community-nav-header .brand{display:none!important}
.community-nav-header .main-nav{display:flex!important}
.community-nav-header .menu-btn{display:none}
@media(max-width:900px){
  .community-nav-header .menu-btn{display:inline-flex!important}
  .community-nav-header .main-nav{display:none!important}
  .community-nav-header .header-inner.nav-open .main-nav,
  body.nav-open .community-nav-header .main-nav,
  html.nav-open .community-nav-header .main-nav{display:flex!important}
}

@media(max-width:900px){
  html.nav-open .community-nav-header .main-nav,
  body.nav-open .community-nav-header .main-nav{
    top:48px!important;
  }
}



/* Council cards: fixed presentation on every device; no hover, focus, or tap zoom. */
#association-council .council-profile-card,
#association-council .council-profile-card:hover,
#association-council .council-profile-card:focus,
#association-council .council-profile-card:focus-visible,
#association-council .council-profile-card:active,
#association-council .council-profile-card.is-zoomed,
#association-council .council-profile-portrait,
#association-council .council-profile-portrait:hover,
#association-council .council-profile-portrait:focus,
#association-council .council-profile-portrait:active{
  transform:none!important;
  box-shadow:none!important;
  filter:none!important;
  transition:none!important;
  cursor:default!important;
}

/* Remove all remnants of the former neon/lightbox feature. */
.council-neon-ring,
.council-card-lightbox,
.council-card-lightbox img,
.council-card-lightbox-close{
  display:none!important;
  visibility:hidden!important;
  animation:none!important;
  box-shadow:none!important;
  filter:none!important;
}
body.council-card-lightbox-open{overflow:auto!important}

/* Association navigation: keep the journal menu visible and above page content. */
html body header.site-header.community-nav-header{
  display:block!important;
  position:relative!important;
  z-index:5000!important;
  visibility:visible!important;
  opacity:1!important;
  overflow:visible!important;
  min-height:52px!important;
  height:auto!important;
  padding:0!important;
  background:#faf7ec!important;
}
html body header.site-header.community-nav-header .header-inner{
  display:flex!important;
  align-items:center!important;
  flex-wrap:wrap!important;
  gap:6px 12px!important;
  min-height:52px!important;
  height:auto!important;
  padding:6px 14px!important;
  overflow:visible!important;
}
html body header.site-header.community-nav-header nav.main-nav{
  display:flex!important;
  flex:1 1 100%!important;
  flex-wrap:wrap!important;
  align-items:center!important;
  justify-content:center!important;
  gap:2px 12px!important;
  min-width:0!important;
  width:100%!important;
  position:relative!important;
  visibility:visible!important;
  opacity:1!important;
  overflow:visible!important;
}
html body header.site-header.community-nav-header nav.main-nav>a,
html body header.site-header.community-nav-header nav.main-nav .nav-group>summary{
  display:inline-flex!important;
  align-items:center!important;
  visibility:visible!important;
  opacity:1!important;
  color:#432d2b!important;
  font-size:12px!important;
  font-weight:700!important;
  line-height:1.6!important;
  padding:6px 3px!important;
  white-space:nowrap!important;
}
html body header.site-header.community-nav-header .menu-btn{
  display:none!important;
}
@media(max-width:900px){
  html body header.site-header.community-nav-header .header-inner{
    flex-wrap:nowrap!important;
    justify-content:flex-start!important;
    min-height:52px!important;
  }
  html body header.site-header.community-nav-header nav.main-nav{
    display:none!important;
    position:absolute!important;
    top:100%!important;
    left:0!important;
    right:0!important;
    z-index:5001!important;
    width:100%!important;
    max-height:75vh!important;
    overflow-y:auto!important;
    flex-direction:column!important;
    align-items:stretch!important;
    justify-content:flex-start!important;
    gap:0!important;
    padding:10px 18px!important;
    background:#faf7ec!important;
    border-top:1px solid #e5dccb!important;
    box-shadow:0 12px 24px rgba(40,20,20,.16)!important;
  }
  html.nav-open body header.site-header.community-nav-header nav.main-nav,
  body.nav-open header.site-header.community-nav-header nav.main-nav,
  header.site-header.community-nav-header .header-inner.nav-open nav.main-nav{
    display:flex!important;
  }
  html body header.site-header.community-nav-header nav.main-nav>a,
  html body header.site-header.community-nav-header nav.main-nav .nav-group>summary{
    display:flex!important;
    width:100%!important;
    min-height:38px!important;
    justify-content:flex-start!important;
    white-space:normal!important;
    text-align:start!important;
    padding:8px 4px!important;
    box-sizing:border-box!important;
  }
  html body header.site-header.community-nav-header .menu-btn{
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    flex:0 0 42px!important;
    width:42px!important;
    height:42px!important;
    min-width:42px!important;
    border:1px solid #b58b43!important;
    border-radius:7px!important;
    background:#fffaf0!important;
    color:#542d32!important;
    font-size:24px!important;
    line-height:1!important;
    cursor:pointer!important;
    visibility:visible!important;
    opacity:1!important;
    order:3!important;
  }
  html body header.site-header.community-nav-header .header-language-switcher{
    display:block!important;
    margin-inline-start:auto!important;
    order:2!important;
  }
  html body header.site-header.community-nav-header nav.main-nav .nav-group{
    display:block!important;
    width:100%!important;
  }
  html body header.site-header.community-nav-header nav.main-nav .nav-submenu{
    position:static!important;
    width:100%!important;
    min-width:0!important;
    box-shadow:none!important;
    border:0!important;
    border-inline-start:3px solid #b58b43!important;
    padding:3px 12px!important;
    margin:0 0 6px!important;
  }
}


/* Member profile identity: keep institution and country compact beneath the name. */
.member-public-identity{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;margin:4px 0 10px;min-width:0;color:#62585a;font-size:13px;line-height:1.65}
.member-public-identity-item{display:inline-flex;align-items:baseline;gap:4px;min-width:0;max-width:100%;overflow-wrap:anywhere}
.member-public-identity-item strong{flex:0 0 auto;color:#78686a;font-size:12px;font-weight:800}
.member-public-fields{align-items:start!important}
.member-public-field{align-self:start;height:fit-content;min-height:0}
@media(max-width:600px){.member-public-identity{gap:5px 10px;font-size:12px}.member-public-identity-item strong{font-size:11px}}
