/* Compact position block: aligned label rows, no added card height. */
.player-profile-heading.has-profile-positions{align-items:center;padding:18px;overflow:visible}
.has-profile-positions>div{position:relative;display:grid;grid-template-columns:minmax(95px,.85fr) minmax(0,1.4fr);grid-template-rows:16px auto;column-gap:18px;row-gap:5px;align-items:start}
.has-profile-positions>div>.eyebrow{grid-column:1;grid-row:1;margin:0;line-height:16px;align-self:start}
.has-profile-positions>div>h1{grid-column:1;grid-row:2;align-self:start;margin:0}
.has-profile-positions .profile-position-group{grid-column:2;grid-row:1 / span 2;margin:0;padding:0 0 0 18px;border-left:1px solid rgba(16,70,153,.23);min-width:0;display:flex;flex-direction:column;gap:5px;align-self:stretch}
.has-profile-positions .position-heading-line{display:flex;align-items:center;gap:8px;min-height:16px;flex-wrap:wrap}
.has-profile-positions .position-group-heading{font:900 8px/16px Nunito,sans-serif;letter-spacing:1.3px;text-transform:uppercase;color:#104699;margin:0}
.has-profile-positions .position-pair{display:inline-flex;gap:5px;align-items:center;font:900 10px/16px Nunito,sans-serif;color:#104699}
.has-profile-positions abbr{border-bottom:1px dotted #104699;text-decoration:none;cursor:help}
.has-profile-positions abbr:focus-visible,.has-profile-positions .profile-role-chip:focus-visible{outline:2px solid #104699;outline-offset:3px}
.has-profile-positions .position-dot{background:none;border:0;padding:0}
.has-profile-positions .position-role-row{display:flex;align-items:center;align-content:center;flex-wrap:wrap;gap:5px;min-height:25px}
.profile-role-chip{display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:5px 8px;font:900 10px Nunito,sans-serif;white-space:nowrap;cursor:default}
.profile-role-chip svg{width:14px;height:14px;fill:currentColor;flex-shrink:0}
.profile-role-chip.bolt{background:#edf8cb;color:#526c0b;border:1px solid #c2dc82}
.profile-role-chip.anchor{background:#eee4ff;color:#6c3aa9;border:1px solid #ccb4ee}
.profile-role-chip.link{background:#ffe3ef;color:#9a3d69;border:1px solid #ecbbd0}
@media(max-width:540px){
 .player-profile-heading.has-profile-positions{gap:10px;padding:14px}
 .has-profile-positions>.number{width:40px;height:52px;font-size:23px}
 .has-profile-positions>div{grid-template-columns:minmax(75px,.8fr) minmax(0,1.35fr);column-gap:8px}
 .has-profile-positions h1{font-size:clamp(18px,5.4vw,22px)}
 .has-profile-positions .profile-position-group{padding-left:8px}
 .has-profile-positions .position-heading-line{gap:6px;flex-wrap:nowrap}
 .has-profile-positions .position-group-heading{font-size:7px;letter-spacing:1px}
 .has-profile-positions .position-pair{font-size:9px;gap:4px}
 .has-profile-positions .position-role-row{flex-wrap:nowrap;gap:3px}
 .has-profile-positions .profile-role-chip{padding:4px;gap:2px;font-size:9px;letter-spacing:-.1px;flex-shrink:0}
 .has-profile-positions .profile-role-chip svg{width:11px;height:11px}
 .has-profile-positions>div>.eyebrow{font-size:7px;letter-spacing:1px}
}
@media(max-width:359px){
 .player-profile-heading.has-profile-positions{gap:7px;padding:11px}
 .has-profile-positions>div{grid-template-columns:minmax(64px,.7fr) minmax(0,1.4fr);column-gap:6px}
 .has-profile-positions .profile-position-group{padding-left:6px}
 .has-profile-positions .profile-role-chip{padding:4px 3px;font-size:8px}
 .has-profile-positions .profile-role-chip svg{width:10px;height:10px}
 .has-profile-positions .position-heading-line{gap:4px}
 .has-profile-positions .position-group-heading{font-size:6.5px;letter-spacing:.5px}
 .has-profile-positions .position-pair{font-size:8px;gap:3px}
}

/* Match the profile card before position badges: 64px number + original padding/border. */
.player-profile-heading.has-profile-positions{height:104px;min-height:104px}
@media(min-width:768px){.player-profile-heading.has-profile-positions{height:116px;min-height:116px}}

/* Compact roles alongside the existing team-card name. */
article.player h2:has(.card-position-symbols){display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.card-position-symbols{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;position:relative;z-index:2;font-family:Nunito,sans-serif}
.mini-role{display:inline-flex;align-items:center;gap:2px;cursor:help}.mini-role svg{width:12px;height:12px;fill:currentColor}.mini-role.bolt{color:#6c9419}.mini-role.anchor{color:#8953b9}.mini-role.link{color:#c35d8d}.card-position-symbols .switch-arrow{font-size:9px;font-weight:900;color:#8a7d9c}.mini-positions{display:inline-flex;align-items:center;gap:3px;font-size:9px;font-weight:900;color:#104699}.mini-positions abbr{border-bottom:1px dotted #7d87a0;cursor:help;text-decoration:none}
