/* Board of Directors — organisational-structure tree (Leadership page).
   Chairman at the apex; directors hang from a connector bar. Each node is a round
   portrait overlapping a gold name tab, with a short note beneath it.
   Sits on the plain page background. Wide screens: horizontal tree.
   Below 1180px: vertical tree with a left spine. */
.board-tree{
  --bt-green:var(--brand-green,#142b45);--bt-gold:var(--brand-gold,#c49a45);--bt-gold-light:var(--gold-light,#d9b872);
  --bt-line:#142b4566;--bt-link:var(--bt-green);--bt-gap:18px;--bt-drop:34px;
  --cp:168px;  /* apex (chairman / head) portrait */
  --mp:100px;  /* member portrait */
  --ov:26px;   /* how far the tab tucks under the portrait */
  position:relative;padding:8px 0 0;background:transparent;color:var(--text);
}
/* Column count comes from a class: inline style attributes are blocked by the site's CSP. */
.board-cols-1{--board-cols:1}.board-cols-2{--board-cols:2}.board-cols-3{--board-cols:3}
.board-cols-4{--board-cols:4}.board-cols-5{--board-cols:5}.board-cols-6{--board-cols:6}
html[data-theme="dark"] .board-tree{--bt-line:#d9b87280;--bt-link:var(--bt-gold-light)}

/* Heading — centred */
.board-tree-heading{display:flex;flex-direction:column;align-items:center;text-align:center;gap:12px;max-width:720px;margin:0 auto 48px}
.board-tree-heading .eyebrow{margin:0;justify-content:center}
.board-tree-heading h2{margin:0;color:var(--heading)!important;font-size:clamp(28px,3vw,40px);letter-spacing:-.03em;line-height:1.1}
.board-tree-heading p{margin:0;max-width:420px;font-size:14.5px;line-height:1.7;color:var(--text-2)}

/* Node */
.board-member{position:relative;margin:0;padding:0;border:0;background:none}
.board-member>summary{display:block;list-style:none;cursor:pointer;border-radius:14px;outline-offset:6px;color:inherit}
.board-member>summary::-webkit-details-marker{display:none}
.board-member>summary::marker{content:''}
.board-member>summary:before,.board-member>summary:after{content:none!important}
.board-member>summary:focus-visible{outline:3px solid var(--bt-gold)}
.board-member-head{display:flex;align-items:center;min-width:0}
.board-member-photo{position:relative;z-index:1;flex:none;display:grid;place-items:center;width:var(--mp);height:var(--mp);border-radius:50%;overflow:hidden;
  border:3px solid var(--surface,#fff);background:var(--bt-green);box-shadow:0 0 0 2px var(--bt-gold),0 12px 26px -14px #0007;transition:box-shadow .2s}
.board-member-photo picture,.board-member-photo img{display:block;width:100%;height:100%}
.board-member-photo img{object-fit:cover;object-position:center 20%}
.board-member-monogram{font-size:calc(var(--mp) * .34);color:var(--bt-gold);line-height:1}
.board-member-tab{flex:1;min-width:0;display:flex;flex-direction:column;justify-content:center;gap:3px;
  min-height:calc(var(--mp) * .8);margin-left:calc(var(--ov) * -1);padding:9px 12px 9px calc(var(--ov) + 12px);
  border-radius:0 12px 12px 0;background:var(--bt-gold);color:var(--bt-green);transition:background-color .2s}
.board-member-name{font-size:14.5px;font-weight:750;line-height:1.25;letter-spacing:-.01em;overflow-wrap:anywhere}
.board-member-role{font-size:12.5px;font-weight:600;line-height:1.3;opacity:.85}
.board-member-note{display:block;margin-left:calc(var(--mp) - var(--ov));padding:12px 14px 13px;
  border:1px solid var(--border);border-top:0;border-radius:0 0 12px 12px;background:var(--surface-2,#f4f5f6);
  font-size:13px;font-weight:400;line-height:1.6;color:var(--text-2)}
.board-member-summary{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden}
.board-member-more{display:inline-flex;gap:6px;margin-top:8px;font-size:12.5px;font-weight:700;letter-spacing:.02em;color:var(--bt-link)}
.board-member>summary:hover .board-member-tab{background:var(--bt-gold-light)}
.board-member>summary:hover .board-member-photo{box-shadow:0 0 0 3px var(--bt-green),0 14px 28px -14px #0008}
html[data-theme="dark"] .board-member>summary:hover .board-member-photo{box-shadow:0 0 0 3px var(--bt-gold-light),0 14px 28px -14px #0008}
.board-member>summary:hover .board-member-more{text-decoration:underline;text-underline-offset:3px}
.board-member.is-vacant .board-member-photo{border:2px dashed var(--bt-gold);box-shadow:none;background:var(--surface-2,#f4f5f6)}
.board-member.is-vacant .board-member-monogram{color:var(--bt-green)}
html[data-theme="dark"] .board-member.is-vacant .board-member-monogram{color:var(--bt-gold-light)}
.board-tree+.board-tree{margin-top:104px}
.board-member-name{font-size:15px}

/* Apex (Chairman / head of management) */
.board-member.is-chair{--mp:var(--cp);--ov:36px;width:min(100%,480px)}
.board-member.is-chair .board-member-tab{min-height:100px;padding-block:14px;padding-right:20px}
.board-member.is-chair .board-member-name{font-size:20px}
.board-member.is-chair .board-member-role{font-size:13.5px}
.board-member.is-chair .board-member-note{font-size:13.5px}
.board-member.is-chair .board-member-summary{-webkit-line-clamp:3;line-clamp:3}

/* Tree connectors (wide screens) */
.board-tree-apex{position:relative;display:flex;justify-content:center}
.board-tree-row{position:relative;list-style:none;margin:var(--bt-drop) 0 0;padding:0;
  display:grid;grid-template-columns:repeat(var(--board-cols,5),minmax(0,1fr));gap:28px var(--bt-gap);align-items:start}
.board-tree-row>li{position:relative;margin:0;padding-top:var(--bt-drop);min-width:0}
.board-tree-apex:after{content:'';position:absolute;left:50%;top:100%;width:2px;height:var(--bt-drop);transform:translateX(-50%);background:var(--bt-line)}
.board-tree-row>li:before{content:'';position:absolute;top:0;height:2px;left:calc(var(--bt-gap) / -2);right:calc(var(--bt-gap) / -2);background:var(--bt-line)}
.board-tree-row>li:first-child:before{left:calc(var(--mp) / 2)}
.board-tree-row>li:last-child:before{right:calc(100% - var(--mp) / 2)}
.board-tree-row>li:only-child:before{display:none}
.board-tree-row>li:after{content:'';position:absolute;top:0;left:calc(var(--mp) / 2 - 1px);width:2px;height:var(--bt-drop);background:var(--bt-line)}
.board-tree-row:before{content:'';position:absolute;left:50%;top:-4px;width:10px;height:10px;border-radius:50%;transform:translateX(-50%);background:var(--bt-gold);box-shadow:0 0 0 4px var(--bg,#fff);z-index:1}
.board-tree-row:has(>li:only-child):before{display:none}
.board-tree-row>li:only-child{justify-self:center;width:min(100%,280px)}

/* Vertical tree (tablet and phone) */
@media (max-width:1179px){
  .board-tree{--cp:140px;--mp:92px;--indent:calc(var(--cp) / 2 + 30px)}
  .board-tree-heading{margin-bottom:36px}
  .board-tree-apex,.board-tree-row{max-width:640px;margin-inline:auto}
  .board-tree-apex{justify-content:flex-start}
  .board-tree-apex:after{left:calc(var(--cp) / 2);top:calc(var(--cp) / 2);height:calc(100% - var(--cp) / 2 + 22px);transform:translateX(-1px)}
  .board-tree-row{display:grid;grid-template-columns:minmax(0,1fr);gap:22px;margin-top:22px}
  .board-tree-row:before{display:none}
  .board-tree-row>li,.board-tree-row>li:only-child{padding-top:0;padding-left:var(--indent);width:auto;justify-self:stretch}
  .board-tree-row>li:before,.board-tree-row>li:first-child:before,.board-tree-row>li:last-child:before,.board-tree-row>li:only-child:before{
    display:block;top:-22px;bottom:0;left:calc(var(--cp) / 2 - 1px);right:auto;width:2px;height:auto}
  .board-tree-row>li:last-child:before{bottom:auto;height:calc(22px + var(--mp) / 2)}
  .board-tree-row>li:after{top:calc(var(--mp) / 2 - 1px);left:calc(var(--cp) / 2);width:calc(var(--indent) - var(--cp) / 2);height:2px}
  .board-member-summary{-webkit-line-clamp:3;line-clamp:3}
}
@media (max-width:560px){
  .board-tree{--cp:112px;--mp:76px;--ov:18px;--indent:calc(var(--cp) / 2 + 18px)}
  .board-tree+.board-tree{margin-top:80px}
  .board-tree-heading h2{font-size:30px}
  .board-tree-heading p{font-size:13.5px}
  .board-member.is-chair{--ov:24px}
  .board-member.is-chair .board-member-tab{min-height:78px}
  .board-member.is-chair .board-member-name{font-size:17px}
  .board-member-name{font-size:14px}
  .board-member-note{margin-left:calc(var(--mp) - var(--ov) - 8px);font-size:13px}
}
@media (prefers-reduced-motion:reduce){.board-member-photo,.board-member-tab{transition:none}}

/* ---------- Team profile pop-up: portrait left, name / role / biography right ---------- */
.info-dialog:has(.profile-popup){width:min(1180px,calc(100% - 32px));max-height:min(90vh,900px);border-radius:8px;background:var(--surface,#fff);box-shadow:0 30px 80px -24px #0a142066}
.info-dialog:has(.profile-popup) .info-dialog-close{top:22px;right:24px;width:44px;height:44px;border:0;border-radius:50%;background:transparent;color:var(--text);font-size:42px;font-weight:300}
.info-dialog:has(.profile-popup) .info-dialog-close:hover{background:var(--surface-2,#f4f5f6);color:var(--heading)}
.info-dialog:has(.profile-popup) .info-dialog-close:focus-visible{outline:3px solid var(--bt-gold,#c49a45);outline-offset:2px}
.profile-popup{display:grid;grid-template-columns:262px minmax(0,1fr);gap:24px 22px;align-items:start;padding:80px 40px 48px 30px}
.profile-popup-photo{aspect-ratio:262/276;overflow:hidden;background:var(--surface-2,#f4f5f6)}
.profile-popup-photo picture,.profile-popup-photo img{display:block;width:100%;height:100%}
.profile-popup-photo img{object-fit:cover;object-position:center 20%}
.profile-popup.no-photo .profile-popup-photo{display:grid;place-items:center;border:2px dashed var(--brand-gold,#c49a45)}
.profile-popup .leader-monogram{font-size:56px;color:var(--brand-gold,#c49a45);background:transparent!important}
.profile-popup-text{min-width:0;padding-top:4px;color:var(--text);font-size:15.5px;line-height:1.55}
.profile-popup-text .popup-title{margin:0 0 16px;font-size:20px;font-weight:800;line-height:1.3;letter-spacing:0;color:var(--heading)}
.profile-popup-text>p,.profile-popup-bio p{margin:0 0 18px;font-size:15.5px;line-height:1.55;color:var(--text)}
.profile-popup-text>.profile-popup-role{margin-bottom:18px}
.profile-popup-bio h2,.profile-popup-bio h3,.profile-popup-bio h4{margin:6px 0 6px;font-size:15.5px;font-weight:700;line-height:1.4;letter-spacing:0;text-transform:none;color:var(--heading)}
.profile-popup-bio ul,.profile-popup-bio ol{margin:0 0 18px;padding-left:20px}
.profile-popup-bio li{margin-bottom:6px}
.profile-popup-bio>:last-child,.profile-popup-text>:last-child{margin-bottom:0}
@media (max-width:760px){
  .profile-popup{grid-template-columns:1fr;padding:72px 22px 30px}
  .profile-popup-photo{width:min(220px,100%)}
}
