
/* Shared visual and text rows keep both sides of the header aligned. */
.masthead{--media-height:160px;display:grid;grid-template-columns:minmax(0,1fr) max-content;grid-template-rows:auto auto auto;gap:8px 32px;align-items:start}
.masthead .brand-identity,.masthead .portrait-contact,.masthead .identity,.masthead .portrait-contact address{display:contents}
.masthead .brand-logo{grid-column:1;grid-row:1;width:auto;height:var(--media-height);max-width:100%;margin:0 0 16px;justify-self:start;object-position:left top}
.masthead .avatar{grid-column:2;grid-row:1;width:var(--media-height);height:var(--media-height);margin:0 0 16px;justify-self:end;flex:none}
/* Both layers use the same crop so the existing hover transition stays aligned. */
.masthead .avatar img{transform:scale(1.0848);transform-origin:center bottom}
.masthead .identity h1{grid-column:1;grid-row:2;margin:0;align-self:start}
.masthead .identity p{grid-column:1;grid-row:3;margin:0;align-self:baseline}
.masthead .linkedin-link{grid-column:2;grid-row:2;justify-self:end;align-self:start;padding:0;margin:6px 0 0}
.masthead address>a[href^="mailto:"]{grid-column:2;grid-row:3;justify-self:end;align-self:baseline;font-size:14px;line-height:1.6;margin:0}
.employer-group{padding:0 0 16px;margin:0 0 16px;border-bottom:1px solid var(--rule)}
.employer-group:last-child{padding-bottom:0;margin-bottom:0;border:0}
.employer-name{font-family:'Inter',Arial,sans-serif;font-size:16px;font-weight:600;line-height:1.6;margin:0 0 6px;color:var(--ink)}
.employer-roles{padding-left:13px}
.employer-group[data-multiple="true"] .employer-roles{border-left:1px solid var(--rule);padding-left:12px}
.position-summary+.position-summary{margin-top:12px}
.position-summary .role-title{font-family:'Inter',Arial,sans-serif;font-size:15px;font-weight:400;line-height:1.5}
.position-summary .role-date{font-size:12px;font-weight:400;line-height:1.5;margin-top:3px}
.position-group{border-bottom:1px solid var(--rule);padding-bottom:12px;margin-bottom:14px}
.position-group:last-child{border:0;margin-bottom:0;padding-bottom:0}
.position-employer{font-family:'Inter',Arial,sans-serif;color:var(--ink);font-size:15px;font-weight:600;line-height:1.45;margin:0 0 6px;padding:0 10px}
.position-group .position-item{border:0;padding:8px 10px 8px 20px}
.position-item strong{font-size:14px;font-weight:400;line-height:1.5}
.position-item[aria-pressed="true"] strong{font-weight:500}
.position-item small{display:block;font-size:12px;font-weight:400;line-height:1.5;color:#685357;margin-top:3px}
@media(max-width:1050px){.masthead{--media-height:134px;column-gap:24px}}
@media(max-width:740px){
 .masthead{--media-height:clamp(72px,22vw,100px);grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:6px 16px}
 .masthead .brand-logo,.masthead .avatar{margin-bottom:10px}
 .masthead .identity h1{font-size:clamp(21px,5.8vw,34px)}
 .masthead .identity p{font-size:12px;line-height:1.5}
 .masthead .linkedin-link{margin-top:0}
 .masthead .linkedin-link svg{width:25px;height:25px}
 .masthead address>a[href^="mailto:"]{font-size:10px;line-height:1.5;overflow-wrap:anywhere;text-align:right}
}
