/* ============================================================
   IJAR — Editorial Board page (matched to mockup 03)
   Unique per-section prefixes; tokens come from style.css
   ============================================================ */

/* shared helpers ------------------------------------------------ */
.eb-h{position:relative;color:var(--navy);font-weight:700;margin:0 auto 0;width:fit-content;max-width:100%}
.eb-h::after{content:"";display:block;width:50px;height:3px;background:var(--gold);border-radius:2px;margin:9px 0 24px}
.eb-h.left{margin:0}
.eb-av{border-radius:50%;background:linear-gradient(135deg,var(--navy),var(--royal));color:#fff;display:flex;align-items:center;justify-content:center;font-weight:700;letter-spacing:.5px;flex-shrink:0;overflow:hidden}
/* A photograph of the person, put in from the editor (Photos section of the
   media library). The circle keeps its size and shape whatever shape the
   picture is: it is cropped to fill rather than squashed, and the initials
   behind it simply stop showing. Same treatment in the profile dialog, which
   mirrors whichever picture the member's card carries. */
.eb-av>img,.pm-photo>img{width:100%;height:100%;object-fit:cover;display:block;border-radius:50%}
.pm-photo{overflow:hidden}
.eb-spec{font-size:12.5px;color:var(--text-2);margin:0}
.eb-spec b{font-weight:600;color:var(--navy)}

/* 1 — Editorial Leadership -------------------------------------- */
.ebl-sec{padding:6px 0 0}
.ebs-sec{padding-top:2px}
/* Picture on the left, words on the right — the same way round as the About
   page (client request; both were previously the other way).

   The markup already has the art first, so it was these order values doing the
   swapping and only they and the column widths needed turning round. Keeping
   the order properties rather than deleting them means the 1024px rule further
   down, which puts the narrow column first, now agrees with the base instead
   of quietly disagreeing with it. */
.ebl{display:grid;grid-template-columns:42% 1fr;gap:48px;align-items:center}
.ebl .ebl-art{order:1}
.ebl .ebl-body{order:2}
.ebl-art{display:flex;justify-content:center;align-items:center}
.ebl-art img{width:100%;max-width:380px;height:auto}
.ebl-body .eb-h{margin:0}
.ebl-body h2{font-size:30px}
.ebl-body p{font-size:15.5px;line-height:1.8;color:var(--text);margin:0;max-width:600px}

/* 2 — Stats bar ------------------------------------------------- */
.ebs{background:linear-gradient(135deg,#0a3072 0%,#001a4d 100%);border-radius:10px;display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding:18px 30px;box-shadow:0 14px 34px rgba(0,26,77,.16)}
.ebs-i{display:flex;align-items:center;justify-content:center;gap:16px;color:#fff;position:relative}
.ebs-i+.ebs-i::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);height:46px;width:1px;background:rgba(255,255,255,.18)}
.ebs-i .ic{font-size:34px;color:#fff;flex-shrink:0;width:42px;text-align:center}
.ebs-i b{font-size:26px;font-weight:700;line-height:1.05;display:block}
.ebs-i span{font-size:13px;color:rgba(255,255,255,.72)}

/* 3 — Editor-in-Chief (3 columns: photo | name | bio) ---------- */
.ebc{display:grid;grid-template-columns:200px minmax(210px,250px) 1fr;gap:36px;align-items:center;background:#fff;border:1px solid var(--border);border-radius:10px;padding:24px 44px;box-shadow:0 12px 36px rgba(0,26,77,.06)}
.ebc-id,.ebc-r{min-width:0}
.ebc-photo{width:190px;height:190px;border-radius:50%;padding:4px;background:#fff;border:3px solid var(--border)}
.ebc-photo .eb-av{width:100%;height:100%;font-size:58px}
.ebc-eyebrow{display:block;color:var(--navy);font-size:17px;font-weight:600;margin-bottom:6px}
.ebc-name{margin:0 0 14px;color:var(--navy);font-size:30px;font-weight:700;line-height:1.15}
.ebc-roles{list-style:none;margin:0;padding:0}
.ebc-roles li{color:var(--text-2);font-size:15px;line-height:1.7}
.ebc-roles li:first-child{color:var(--navy);font-weight:600}
.ebc-bio{margin:0 0 22px;color:var(--text-2);font-size:15px;line-height:1.8}
.ebc-act{display:flex;flex-wrap:wrap;gap:14px}
.ebc-act .eb-btn{padding:11px 38px;font-size:13.5px;white-space:nowrap}

/* shared eb buttons */
.eb-btn{display:inline-flex;align-items:center;gap:9px;padding:13px 24px;border-radius:9px;font-size:13px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;text-decoration:none;transition:.2s;cursor:pointer}
.eb-btn i{font-size:.95em}
.eb-btn-gold{background:var(--gold);color:var(--dark);border:1px solid var(--gold)}
.eb-btn-gold:hover{background:var(--gold-2);transform:translateY(-2px)}
.eb-btn-outline{background:transparent;color:var(--navy);border:1px solid var(--navy)}
.eb-btn-outline:hover{background:var(--navy);color:#fff;transform:translateY(-2px)}
.eb-btn-navy{background:var(--navy);color:#fff;border:1px solid var(--navy)}
.eb-btn-navy:hover{background:var(--dark)}

/* 4 — Executive & Associate Editors ---------------------------- */
.ebx{display:grid;grid-template-columns:210px 1fr;gap:30px;align-items:start}
.ebx-head h2{font-size:26px;line-height:1.2}
.ebx-head .eb-btn{margin-top:6px}
/* Every card the same size (correction 22 #1): columns that a long address or
   an unbroken name cannot widen — the fourth one was 80px wider than the rest —
   rows of one height, the address cut to three lines (the whole of it is in
   View Profile), and the buttons on the bottom line. */
.ebx-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:1fr;gap:20px}
.ebx-card{min-width:0;overflow-wrap:anywhere;background:#fff;border:1px solid var(--border);border-radius:10px;padding:20px 18px;box-shadow:0 3px 14px rgba(0,26,77,.05);display:flex;flex-direction:column;text-align:left}
.ebx-top{display:flex;align-items:flex-start;gap:13px;margin-bottom:14px}
.ebx-card .eb-av{width:74px;height:74px;font-size:23px;flex-shrink:0}
.ebx-id{min-width:0}
.ebx-id h3{font-size:15px;font-weight:700;color:var(--navy);margin:0 0 4px;line-height:1.25}
.ebx-role{font-size:12.5px;color:var(--text-2);margin:0 0 5px}
.ebx-aff{font-size:12.5px;color:var(--text-2);line-height:1.45;margin:0;min-height:54px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ebx-card .eb-spec{margin:0 0 14px;font-size:13px}
.ebx-act{display:flex;gap:10px;margin-top:auto;padding-top:4px}
.ebx-act .eb-mini{padding:10px 8px;font-size:11px}
.eb-mini{flex:1;display:inline-flex;align-items:center;justify-content:center;gap:5px;font-size:10.5px;font-weight:600;letter-spacing:.3px;color:var(--navy);background:#fff;border:1px solid var(--border);border-radius:7px;padding:8px 6px;text-decoration:none;white-space:nowrap;transition:.18s}
.eb-mini i{font-size:11px;color:var(--royal)}
.eb-mini:hover{background:var(--navy);color:#fff}
.eb-mini:hover i{color:#fff}

/* 5 — Editorial Board Members ---------------------------------- */
.ebm-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:14px}
.ebm-head h2{font-size:26px}
.ebm-head .eb-h::after{margin-bottom:0}
.ebm-head .eb-btn{padding:8px 24px}
.ebm-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-auto-rows:1fr;gap:18px}
.ebm-card{min-width:0;overflow-wrap:anywhere;display:flex;align-items:flex-start;gap:13px;background:#fff;border:1px solid var(--border);border-radius:12px;padding:16px 15px;box-shadow:0 2px 8px rgba(0,26,77,.05);transition:.18s}
.ebm-card:hover{box-shadow:0 8px 22px rgba(0,26,77,.10);transform:translateY(-2px)}
.ebm-card .eb-av{width:54px;height:54px;font-size:17px}
.ebm-info{min-width:0;align-self:stretch;display:flex;flex-direction:column}
.ebm-info .ebm-view{margin-top:auto}
.ebm-info h3{font-size:14.5px;font-weight:700;color:var(--navy);margin:0 0 2px;line-height:1.2}
.ebm-role{font-size:12px;color:var(--text-2);margin:0 0 5px}
.ebm-univ{font-size:11.5px;color:var(--text);line-height:1.4;margin:0 0 5px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ebm-univ .flag{font-size:12px}

/* 6 — Global Academic Representation --------------------------- */
.ebg{position:relative;overflow:hidden;background:#000c2d;border-radius:10px;padding:30px 36px 34px;color:#fff}
.ebg::before{content:"";position:absolute;inset:0;background:radial-gradient(90% 130% at 12% 26%,rgba(46,98,208,.20),transparent 55%);pointer-events:none;z-index:0}
.ebg::after{content:"";position:absolute;top:0;bottom:0;right:34px;width:40%;background:url('eb-world.png') right center/contain no-repeat;opacity:.9;pointer-events:none;z-index:0;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,#000 42%);mask-image:linear-gradient(to right,transparent 0%,#000 42%)}
.ebg h2{color:#fff;position:relative;z-index:1}
.ebg h2::after{margin:9px 0 0}
.ebg-chips{display:flex;flex-wrap:wrap;gap:13px;margin-top:22px;position:relative;z-index:1}
.ebg-chip{display:inline-flex;align-items:center;gap:7px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.22);color:#fff;font-size:13px;font-weight:500;padding:5px 11px;border-radius:7px;box-shadow:none}
.ebg-chip .flag{font-size:14px;border-radius:2px}

/* 7 — Editorial Responsibilities ------------------------------- */
.ebr-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}
.ebr-card{display:flex;align-items:flex-start;gap:14px;background:#fff;border:1px solid var(--border);border-radius:10px;padding:22px 20px;box-shadow:0 2px 8px rgba(0,26,77,.04)}
.ebr-ic{width:50px;height:50px;border-radius:50%;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:20px;flex-shrink:0}
.ebr-tx h3{font-size:15px;font-weight:700;color:var(--navy);margin:0 0 8px;line-height:1.25}
.ebr-tx p{font-size:13px;line-height:1.55;color:var(--text-2);margin:0}

/* 8 — Become a member (CTA) ------------------------------------ */
.ebcta{background:linear-gradient(120deg,var(--dark),var(--navy));border-radius:10px;padding:28px 40px;display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap}
.ebcta-l{display:flex;align-items:center;gap:22px;flex:1 1 460px}
.ebcta-ic{width:58px;height:58px;border-radius:50%;border:2px solid rgba(255,255,255,.4);display:grid;place-items:center;color:#fff;font-size:24px;flex-shrink:0}
.ebcta h2{font-size:22px;color:#fff;margin:0 0 6px}
.ebcta p{font-size:13.5px;line-height:1.55;color:rgba(255,255,255,.8);margin:0;max-width:640px}
.ebcta-act{display:flex;gap:14px;flex-shrink:0}
.ebcta-act .eb-btn{padding:10px 46px}
.ebcta .eb-btn-outline{color:#fff;border-color:rgba(255,255,255,.6)}
.ebcta .eb-btn-outline:hover{background:rgba(255,255,255,.12);color:#fff}

/* 9 — Areas of Expertise + Contact ----------------------------- */
.eba{display:grid;grid-template-columns:1.3fr .8fr;gap:48px;align-items:start}
/* Areas of Expertise: the home page's subject list, box and all — the tiles
   are its .scope-chip, one fixed size, and the box scrolls inside itself once
   the board covers more subjects than it can show (correction 14 #2). */
.eba-box{border:1px solid var(--border);border-radius:12px;padding:18px;background:#fff;
  box-shadow:0 2px 12px rgba(0,26,77,.06);max-height:396px;overflow-y:auto;
  scrollbar-width:thin;scrollbar-color:#b9c6dd #eef2f8}
.eba-box::-webkit-scrollbar{width:10px}
.eba-box::-webkit-scrollbar-track{background:#eef2f8;border-radius:8px}
.eba-box::-webkit-scrollbar-thumb{background:#b9c6dd;border-radius:8px;border:2px solid #eef2f8}
.eba-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr))}
.eba-contact{display:grid;grid-template-columns:1fr auto;gap:24px;align-items:center}
.eba-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px}
.eba-list li{display:flex;align-items:flex-start;gap:13px;font-size:14.5px;color:var(--text)}
.eba-list a{color:var(--text);text-decoration:none}
.eba-list a:hover{color:var(--royal)}
.eba-cic{width:34px;height:34px;border-radius:50%;background:rgba(0,43,127,.10);display:grid;place-items:center;color:var(--navy);font-size:13px;flex-shrink:0}
.eba-env{width:116px}
.eba-env svg{width:100%;height:auto;display:block}

/* responsive --------------------------------------------------- */

/* 1180 px — close the Exec/Associate grid overflow gap (993–1180px):
   stack the 210px+1fr layout and drop the 3-up cards to 2-up, and let the
   nowrap mini-buttons wrap, before the third card forces horizontal scroll. */
@media(max-width:1180px){
  .ebx{grid-template-columns:1fr}
  .ebx-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .eb-mini{white-space:normal}
}

/* 1024 px — wide tablet / small laptop */
@media(max-width:1024px){
  .ebl{grid-template-columns:38% 1fr;gap:36px}
  .ebc{grid-template-columns:180px minmax(180px,220px) 1fr;gap:24px;padding:20px 30px}
  /* narrower bio/action column: let buttons wrap & shrink padding so they never overflow */
  .ebc-act{flex-wrap:wrap}
  .ebc-act .eb-btn{padding:11px 24px}
  .ebm-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  /* let content columns shrink to avoid grid blow-out / horizontal scroll */
  .ebx-cards{min-width:0}
}

/* 992 px — tablet landscape */
@media(max-width:992px){
  .ebl,.ebc,.ebx,.eba{grid-template-columns:1fr;gap:24px}
  /* Leadership image: centered, reasonable size */
  .ebl-art img{max-width:340px;margin:0 auto}
  .ebl-body .eb-h,.ebc{text-align:left}
  /* Editor-in-Chief: stack, center photo */
  .ebc{padding:24px 28px}
  .ebc-photo{width:140px;height:140px;margin:0 auto}
  .ebc-photo .eb-av{font-size:44px}
  .ebc-name{font-size:24px}
  /* buttons wrap on tablet */
  .ebc-act{flex-wrap:wrap}
  .ebc-act .eb-btn{padding:10px 24px}
  /* Executive/Associate grid: 2-col from 3 */
  .ebx-cards,.ebr-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Board members: 2-col from 4 */
  .ebm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  /* Stats bar: 2-col from 4 */
  .ebs{grid-template-columns:repeat(2,1fr);padding:18px 24px;gap:16px}
  .ebs-i+.ebs-i::before{display:none}
  .eba-contact{grid-template-columns:1fr}
  .eba-env{display:none}
  .ebcta{flex-direction:column;align-items:flex-start;padding:24px 28px}
  .ebcta-l{flex:none;width:100%}
  .ebcta-act{flex-wrap:wrap}
  /* world map overlay can clip poorly at tablet */
  .ebg::after{width:30%;opacity:.6}
}

/* 768 px — tablet portrait */
@media(max-width:768px){
  .ebl-body h2{font-size:24px}
  .ebl-art img{max-width:280px}
  .ebm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ebx-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ebr-grid{grid-template-columns:repeat(2,1fr)}
  /* Stat bar numbers smaller */
  .ebs-i b{font-size:22px}
  .ebs-i span{font-size:12px}
  .ebs-i .ic{font-size:28px;width:36px}
  /* EIC card */
  .ebc{padding:20px 20px}
  .ebc-name{font-size:22px}
  .ebc-bio{font-size:14px}
  .ebc-act .eb-btn{padding:10px 18px;font-size:12.5px}
  /* CTA */
  .ebcta{padding:20px 20px}
  .ebcta h2{font-size:19px}
  .ebcta-act .eb-btn{padding:10px 28px}
  /* world map hidden at tablet portrait */
  .ebg::after{display:none}
  .ebg{padding:24px 24px 28px}
}

/* 480 px — large phone */
@media(max-width:480px){
  .ebl-art img{max-width:240px}
  .ebl-body h2{font-size:22px}
  .ebl-body p{font-size:14px}
  /* Stats: 1-col */
  .ebs{grid-template-columns:1fr;padding:16px 18px;gap:12px}
  .ebs-i{justify-content:flex-start;padding:4px 0}
  .ebs-i b{font-size:20px}
  /* EIC: fully stacked, centered */
  .ebc{padding:18px 16px;gap:18px}
  .ebc-photo{width:110px;height:110px}
  .ebc-photo .eb-av{font-size:34px}
  .ebc-name{font-size:20px}
  .ebc-eyebrow{font-size:15px}
  .ebc-act{flex-direction:column;gap:10px}
  .ebc-act .eb-btn{width:100%;justify-content:center;padding:12px 20px}
  /* Executive/Associate cards: 1-col */
  .ebx-cards{grid-template-columns:1fr}
  /* Board members: 1-col */
  .ebm-grid{grid-template-columns:1fr}
  /* Responsibilities: 1-col */
  .ebr-grid{grid-template-columns:1fr}
  /* Heads: stack */
  .ebm-head,.ebx-head{flex-direction:column;align-items:flex-start;gap:10px}
  .ebm-head .eb-btn,.ebx-head .eb-btn{align-self:stretch;justify-content:center}
  /* CTA */
  .ebcta{padding:18px 16px;gap:16px}
  .ebcta-l{gap:14px}
  .ebcta-ic{width:46px;height:46px;font-size:20px}
  .ebcta h2{font-size:17px}
  .ebcta-act{width:100%;flex-direction:column}
  .ebcta-act .eb-btn{width:100%;justify-content:center;padding:11px 20px}
  /* Areas / contact */
  /* mini buttons in exec cards wrap */
  .ebx-act{flex-wrap:wrap}
  .eb-mini{white-space:normal;word-break:break-word;text-align:center}
}

/* 360 px — small phone */
@media(max-width:360px){
  .ebl-art img{max-width:200px}
  .ebl-body h2{font-size:20px}
  .ebs{padding:14px 12px;gap:10px}
  .ebs-i b{font-size:18px}
  .ebs-i .ic{font-size:24px;width:30px}
  .ebc{padding:14px 12px}
  .ebc-photo{width:90px;height:90px}
  .ebc-photo .eb-av{font-size:28px}
  .ebc-name{font-size:18px}
  .ebcta{padding:14px 12px}
  .ebcta h2{font-size:16px}
  .ebm-card{flex-direction:column;align-items:flex-start;gap:10px}
  .ebm-card .eb-av{width:46px;height:46px;font-size:14px}
  .ebg{padding:18px 14px 22px}
  .ebg h2{font-size:20px}
  /* prevent long emails/names overflowing */
  .eba-list li{font-size:13px}
  .eba-list a{word-break:break-all}
  .ebm-info h3{font-size:13.5px}
  .ebm-univ{word-break:break-word}
}

/* ── Small "View Profile" link on board-member cards ── */
.ebm-card{position:relative}
.ebm-view{display:inline-flex;align-items:center;gap:6px;margin-top:9px;font-size:12px;font-weight:600;
  color:var(--royal);text-decoration:none}
.ebm-view:hover{color:var(--navy)}
.ebm-view i{font-size:11px}

/* ── MEMBER PROFILE modal (image #33 design) ─────────────── */
.pm{position:fixed;inset:0;z-index:1000;display:grid;place-items:center;padding:26px 16px;overflow:auto}
.pm[hidden]{display:none}
.pm-backdrop{position:fixed;inset:0;background:rgba(6,17,46,.55)}
.pm-dialog{position:relative;z-index:1;width:min(1120px,96vw);background:#fff;border-radius:16px;overflow:hidden;
  box-shadow:0 30px 80px rgba(0,10,40,.45);animation:pmpop .2s ease}
@keyframes pmpop{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.pm-bar{display:flex;align-items:center;justify-content:space-between;background:var(--navy);color:#fff;padding:15px 24px}
.pm-bar-t{display:flex;align-items:center;gap:11px;font-size:15px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.pm-bar-t i{color:var(--gold);font-size:16px}
.pm-x{width:34px;height:34px;border:0;border-radius:50%;background:rgba(255,255,255,.12);color:#fff;font-size:17px;
  cursor:pointer;display:grid;place-items:center;transition:.16s}
.pm-x:hover{background:rgba(255,255,255,.28)}

/* header */
.pm-head{display:grid;grid-template-columns:200px 1fr 356px;gap:24px;align-items:start;
  padding:22px 26px 20px;border-bottom:1px solid var(--border)}
.pm-photo{width:200px;height:200px;align-self:start;border-radius:50%;background:linear-gradient(135deg,#eaf1fb,#dbe7f8);
  border:4px solid #eef3fb;box-shadow:0 10px 26px rgba(0,26,77,.14);display:grid;place-items:center}
.pm-photo span{font-size:58px;font-weight:700;color:var(--navy);letter-spacing:.02em}
.pm-id{align-self:start}
.pm-badge{display:inline-block;background:var(--gold);color:var(--dark);font-size:12px;font-weight:700;
  letter-spacing:.03em;border-radius:6px;padding:4px 13px;margin-bottom:7px}
.pm-name{margin:0 0 2px;font-size:26px;font-weight:700;color:var(--royal);line-height:1.15}
.pm-role{margin:0 0 7px;font-size:14.5px;font-weight:700;color:var(--navy)}
.pm-lines p{margin:0 0 1px;font-size:13px;color:var(--text);line-height:1.5}
.pm-contact{display:flex;flex-wrap:wrap;gap:6px 22px;margin-top:10px}
.pm-contact a{display:inline-flex;align-items:center;gap:8px;font-size:13px;color:var(--royal);text-decoration:none}
.pm-contact a:hover{color:var(--navy)}
.pm-contact i{color:var(--royal)}
/* stats box */
.pm-stats{background:linear-gradient(160deg,#002B7F,#001a4d);border-radius:12px;overflow:hidden;
  box-shadow:0 10px 26px rgba(0,26,77,.22)}
.pm-stat{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:7px 16px;
  border-top:1px solid rgba(255,255,255,.10)}
.pm-stat:first-child{border-top:0}
.pm-stat span{display:flex;align-items:center;gap:10px;font-size:12.5px;color:#cdd9ef}
.pm-stat span i{color:var(--gold);font-size:13px;width:16px;text-align:center}
.pm-stat b{font-size:13.5px;color:#fff;font-weight:700;white-space:nowrap}

/* tabs */
.pm-tabs{display:flex;flex-wrap:wrap;gap:6px;border-bottom:1px solid var(--border);padding:12px 26px 0}
.pm-tab{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:0;background:transparent;
  font-family:inherit;font-size:13px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;
  color:var(--text-2);cursor:pointer;border-radius:8px 8px 0 0;transition:.16s;position:relative;bottom:-1px}
.pm-tab i{font-size:13px}
.pm-tab:hover{color:var(--navy)}
.pm-tab.active{background:var(--navy);color:#fff}

/* panes */
.pm-body{padding:18px 26px 22px;height:300px;overflow-y:auto}
.pm-pane{display:none}
.pm-pane.active{display:block}
.pm-about{display:grid;grid-template-columns:1fr 430px;gap:26px;align-items:stretch}
.pm-about-l{display:flex;flex-direction:column;height:100%}
.pm-about-l p{margin:0 0 9px;font-size:13px;color:var(--text);line-height:1.6}
.pm-about-btns{display:flex;flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:16px}
.pm-btn{display:inline-flex;align-items:center;gap:9px;padding:11px 20px;border-radius:8px;font-size:13px;
  font-weight:700;letter-spacing:.02em;text-transform:uppercase;text-decoration:none;transition:.16s;cursor:pointer}
.pm-btn-gold{background:var(--gold);color:var(--dark)}
.pm-btn-gold:hover{background:var(--gold-2)}
.pm-btn-out{background:#fff;color:var(--royal);border:1.5px solid var(--royal)}
/* correction 22 #3: a detail not there yet shows as a dash; a button with no link
   is shown, greyed */
.pm-none{color:#94a3b8}
.pm-btn.pm-off{opacity:.45;cursor:default;filter:grayscale(1)}
.pm-about-l .ebp-links,#pmBio .ebp-links{font-size:12.5px;color:var(--text-2);margin-top:10px}
#pmBio .ebp-links a{color:var(--royal);font-weight:600;text-decoration:none}#pmBio .ebp-links a:hover{text-decoration:underline}
/* correction 22 #2: "Edit member" — only while the page is open in the Visual
   Page Editor; a member is changed in Admin → Editorial Board */
.eb-admin-edit{display:none}
body.wwj-editing .eb-admin-edit{display:inline-flex;align-items:center;gap:6px;margin-top:8px;padding:6px 11px;border-radius:6px;background:#d97706;color:#fff !important;font-size:11.5px;font-weight:700;text-decoration:none;align-self:flex-start;position:relative;z-index:5}
body.wwj-editing .eb-admin-edit:hover{background:#b45309}
body.wwj-editing .ebp .ebp-note{margin:0 0 10px;font-size:12px;color:#92400e;background:#fffbeb;border:1px solid #fde68a;border-radius:6px;padding:8px 10px}
body.wwj-editing .ebp .ebp-note .eb-admin-edit{margin:6px 0 0}
.pm-btn-out:hover{background:var(--royal);color:#fff}
.pm-about-r{background:#f7f9fd;border:1px solid var(--border);border-radius:12px;padding:8px 20px;align-self:start}
.pm-dl{display:flex;align-items:flex-start;gap:12px;padding:11px 0}
.pm-dl .ic{color:var(--royal);font-size:15px;width:18px;text-align:center;flex-shrink:0;line-height:1.5}
.pm-dl>b{width:118px;flex-shrink:0;font-size:13px;font-weight:700;color:var(--navy);line-height:1.5}
.pm-dl>.val{flex:1;min-width:0;font-size:13px;color:var(--text);line-height:1.5}
/* list panes */
.pm-list{list-style:none;margin:0;padding:0;display:grid;gap:11px;max-width:820px}
.pm-list li{position:relative;padding-left:28px;font-size:13.5px;color:var(--text);line-height:1.55}
.pm-list li::before{content:"\f00c";font-family:"Font Awesome 6 Free";font-weight:900;position:absolute;
  left:0;top:1px;color:var(--gold);font-size:12px}
.pm-list--chips{display:flex;flex-wrap:wrap;gap:10px}
.pm-list--chips li{padding:8px 16px;background:#eef3fb;border-radius:20px;color:var(--navy);font-weight:600}
.pm-list--chips li::before{content:none}

/* ── Areas of Expertise: a panel of its own (correction 13 #6) ──
   The chips were laid straight into the pane, so a member with many subjects
   made the dialog grow until the list was cut off at the bottom of the screen.
   The panel is a fixed height now and scrolls inside itself, so every subject
   can be read whatever the number of them, and the dialog stops moving. */
.pm-pane[data-pane="exp"]{padding:0}
.pm-expbox{border:1px solid var(--border);border-radius:12px;background:#f7f9fd;padding:16px 18px;
  height:300px;overflow-y:auto}
.pm-expbox::-webkit-scrollbar{width:8px}
.pm-expbox::-webkit-scrollbar-thumb{background:#c9d5e6;border-radius:4px}
.pm-expbox .pm-list--chips{margin:0}
/* Even chips: one line each, so a long subject does not make its chip twice the
   height of the one beside it. */
.pm-list--chips li{min-height:36px;display:inline-flex;align-items:center;line-height:1.3}

/* ── A member's profile lives in their card (correction 13 #31) ──
   The reader sees the card and gets the profile in the dialog; in the editor it
   is shown on the page, under the card, so every line of it can be typed into.
   The labels are drawn by the stylesheet rather than written into the page, so
   there is nothing there for anyone to edit by mistake. */
.ebp{display:none}
body.wwj-editing .ebp{display:block;margin-top:14px;border-top:1px dashed #c3d0e4;padding-top:12px;
  font-size:13px;color:var(--text);text-align:left}
/* Folded shut to begin with: twelve profiles open at once made the page in the
   editor several screens long and the cards impossible to find among them.
   Click the line to work on one member. */
.ebp-sum{cursor:pointer;font:700 12px 'Poppins',system-ui;letter-spacing:.04em;text-transform:uppercase;
  color:var(--royal);list-style:none;display:flex;align-items:center;gap:7px}
.ebp-sum::-webkit-details-marker{display:none}
.ebp-sum::before{content:"\f0fe";font-family:"Font Awesome 6 Free";font-weight:900;font-size:12px}
.ebp[open] .ebp-sum::before{content:"\f146"}
.ebp[open] .ebp-sum{margin-bottom:10px}
body.wwj-editing .ebp>*{margin:0 0 7px}
body.wwj-editing .ebp .ebp-f::before,
body.wwj-editing .ebp .ebp-lines::before,
body.wwj-editing .ebp .ebp-stats::before,
body.wwj-editing .ebp .ebp-bio::before,
body.wwj-editing .ebp .ebp-list::before{display:block;font-size:10.5px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:#7d8ca6;margin-bottom:2px}
body.wwj-editing .ebp [data-f="badge"]::before{content:"Badge"}
body.wwj-editing .ebp [data-f="name"]::before{content:"Name"}
body.wwj-editing .ebp [data-f="role"]::before{content:"Role"}
body.wwj-editing .ebp [data-f="lines"]::before{content:"Position, faculty, university"}
body.wwj-editing .ebp [data-f="email"]::before{content:"Email"}
body.wwj-editing .ebp [data-f="phone"]::before{content:"Phone"}
body.wwj-editing .ebp .ebp-stats::before{content:"Figures"}
body.wwj-editing .ebp [data-f="bio"]::before{content:"About"}
body.wwj-editing .ebp [data-f="spec"]::before{content:"Specialization"}
body.wwj-editing .ebp [data-f="aff"]::before{content:"Affiliation"}
body.wwj-editing .ebp [data-f="mem"]::before{content:"Memberships"}
body.wwj-editing .ebp [data-f="rev"]::before{content:"Reviewer for"}
body.wwj-editing .ebp [data-f="qual"]::before{content:"Qualifications"}
body.wwj-editing .ebp [data-f="expertise"]::before{content:"Areas of expertise"}
body.wwj-editing .ebp [data-f="pub"]::before{content:"Publications"}
body.wwj-editing .ebp [data-f="ach"]::before{content:"Achievements"}
body.wwj-editing .ebp .ebp-list{list-style:disc;margin-left:18px}
body.wwj-editing .ebp .ebp-list li{margin:0 0 4px}
body.wwj-editing .ebp .ebp-stats p{display:flex;gap:8px;margin:0 0 3px}
body.wwj-editing .ebp .ebp-stats b{width:170px;flex-shrink:0;font-weight:600;color:#55637a}
/* the cards are a fixed grid; while editing they hold a whole profile, so one
   to a row keeps every line wide enough to read */
body.wwj-editing .ebm-grid,body.wwj-editing .ebx-cards{grid-template-columns:1fr}
