/* Approved concept: one leading ribbon, family portrait, four ranked ribbons. */
#roles.concept-statistics{background:var(--tyoma-pink-wash);padding:48px 0 44px;isolation:isolate;overflow:hidden}
#roles.concept-statistics:before{width:44%;height:440px;right:-6%;top:35px;background:var(--tyoma-pink-soft);mask:url('assets/bb-heart.svg') center/contain no-repeat;transform:rotate(13deg)}
#roles.concept-statistics:after{content:none;display:none}
#roles .section-head{display:block;min-height:145px;margin:0 0 25px}
#roles .section-head>div{width:65%}
#roles .section-head h2{font:clamp(38px,4.1vw,61px)/1.1 Barnacle,sans-serif;text-wrap:balance;max-width:850px}
#roles .ranking-disclaimer{margin-top:16px;font:16px/1.4 Circe,sans-serif}
#roles .stats-family{right:0;top:2px;width:43%;height:auto;aspect-ratio:1.609;padding:10px;margin:0;position:absolute}
#roles .stats-family img{object-position:60% 47%;transform:scale(1.13)}
#roles .role-ranking{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:210px 130px 130px;grid-auto-rows:minmax(88px,auto);gap:20px 28px;padding:0;margin:0;background:none}
#roles .ranking-row:nth-child(n){display:grid;grid-template-columns:60px minmax(0,1fr) 150px;grid-template-rows:1fr;gap:15px;align-items:center;justify-self:stretch;align-self:stretch;width:100%!important;min-height:0;height:auto;margin:0;padding:15px 25px;border:4px solid var(--tyoma-white)!important;border-radius:65px;background:var(--tyoma-pink-soft);color:var(--tyoma-blue)}
#roles .ranking-row:nth-child(n) .ranking-position{grid-column:1;grid-row:1;place-self:center;padding:0;font-size:20px;color:inherit}
#roles .ranking-row:nth-child(n) .ranking-cup{width:52px;height:64px}
#roles .ranking-row:nth-child(n) h3{grid-column:2;grid-row:1;font:700 29px/1.1 Rounds,sans-serif;text-wrap:balance;max-width:none;padding:0;align-self:center}
#roles .ranking-row:nth-child(n) .ranking-value{grid-column:3;grid-row:1;place-self:center;position:relative;isolation:isolate;width:150px;height:98px;padding:0;border:0;border-radius:0;background:none;gap:4px}
#roles .ranking-row:nth-child(n) .ranking-value:before{content:'';position:absolute;inset:-6px;z-index:-1;background:var(--tyoma-white);mask:url('assets/bb-cloud.svg') center/contain no-repeat}
#roles .ranking-row:nth-child(n) .ranking-number{font:49px/1 Barnacle,sans-serif;color:var(--tyoma-blue)}
#roles .ranking-row:nth-child(n) .ranking-unit{font:14px/1.2 Circe,sans-serif;color:var(--tyoma-blue)}
#roles .ranking-row:nth-child(1){grid-column:1;grid-row:1;width:126%!important;grid-template-columns:80px minmax(0,1fr) 214px;padding:24px 30px;border:0!important;background:var(--tyoma-blue);color:var(--tyoma-white);border-radius:95px;z-index:2}
#roles .ranking-row:nth-child(1) .ranking-cup{width:74px;height:90px;color:var(--tyoma-peach)}
#roles .ranking-row:nth-child(1) h3{font-size:48px;line-height:1.06}
#roles .ranking-row:nth-child(1) .ranking-value{width:214px;height:148px}
#roles .ranking-row:nth-child(1) .ranking-number{font-size:76px}
#roles .ranking-row:nth-child(2){grid-column:1;grid-row:2}
#roles .ranking-row:nth-child(3){grid-column:1;grid-row:3;background:var(--tyoma-peach-soft)}
#roles .ranking-row:nth-child(4){grid-column:2;grid-row:2;background:var(--tyoma-green-wash)}
#roles .ranking-row:nth-child(5){grid-column:2;grid-row:3;background:var(--tyoma-white)}
#roles .ranking-row:nth-child(5) .ranking-value:before{background:var(--tyoma-peach-soft)}
#roles .ranking-row:nth-child(n+6){grid-column:1/-1;grid-row:auto;grid-template-columns:40px minmax(0,1fr) 110px;border-radius:30px;background:var(--tyoma-peach-soft);padding:12px 22px}
#roles .ranking-row:nth-child(n+6) .ranking-value{width:110px;height:62px;background:var(--tyoma-white);border-radius:22px}
#roles .ranking-row:nth-child(n+6) .ranking-value:before{display:none}
#roles .ranking-row:nth-child(n+6) .ranking-number{font:34px/1 Rounds,sans-serif}
#roles .wall-bottom{margin-top:24px;gap:20px}
#roles .wall-bottom p{font-size:20px}
#roles .text-button{font-size:21px;padding:15px 25px;white-space:nowrap}
@media(min-width:761px) and (max-width:1100px){
 #roles .section-head{min-height:135px}
 #roles .section-head h2{font-size:39px}
 #roles .stats-family{top:30px;width:43%}
 #roles .role-ranking{grid-template-rows:185px 125px 125px;gap:16px 18px}
 #roles .ranking-row:nth-child(n){grid-template-columns:38px minmax(0,1fr) 100px;gap:9px;padding:12px 14px}
 #roles .ranking-row:nth-child(n) .ranking-cup{width:36px;height:45px}
 #roles .ranking-row:nth-child(n) h3{font-size:24px}
 #roles .ranking-row:nth-child(n) .ranking-value{width:100px;height:78px}
 #roles .ranking-row:nth-child(n) .ranking-number{font-size:35px}
 #roles .ranking-row:nth-child(n) .ranking-unit{font-size:12px}
 #roles .ranking-row:nth-child(1){grid-template-columns:51px minmax(0,1fr) 145px;padding:18px 20px}
 #roles .ranking-row:nth-child(1) .ranking-cup{width:48px;height:60px}
 #roles .ranking-row:nth-child(1) h3{font-size:34px}
 #roles .ranking-row:nth-child(1) .ranking-value{width:145px;height:108px}
 #roles .ranking-row:nth-child(1) .ranking-number{font-size:53px}
}
@media(min-width:761px) and (max-width:850px){
 #roles .ranking-row:nth-child(n){grid-template-columns:30px minmax(0,1fr) 78px;gap:7px;padding:12px}
 #roles .ranking-row:nth-child(n) h3{font-size:21px}
 #roles .ranking-row:nth-child(n) .ranking-cup{width:30px;height:38px}
 #roles .ranking-row:nth-child(n) .ranking-value{width:78px;height:68px}
 #roles .ranking-row:nth-child(n) .ranking-number{font-size:29px}
 #roles .ranking-row:nth-child(1){grid-template-columns:36px minmax(0,1fr) 112px;gap:10px;padding:18px}
 #roles .ranking-row:nth-child(1) h3{font-size:29px}
 #roles .ranking-row:nth-child(1) .ranking-value{width:112px;height:90px}
 #roles .ranking-row:nth-child(1) .ranking-number{font-size:42px}
 #roles .ranking-row:nth-child(1) .ranking-cup{width:36px;height:46px}
}
@media(max-width:760px){
 #roles.concept-statistics{padding:36px 0}
 #roles.concept-statistics:before{top:120px;width:110%;height:340px}
 #roles .section-head{min-height:0;margin-bottom:22px}
 #roles .section-head>div{width:100%}
 #roles .section-head h2{font-size:35px;max-width:420px}
 #roles .ranking-disclaimer{font-size:13px;margin-top:12px}
 #roles .stats-family{position:relative;inset:auto;width:100%;margin:20px 0 0;padding:8px}
 #roles .role-ranking{display:flex;flex-direction:column;gap:14px}
 #roles .ranking-row:nth-child(n){grid-template-columns:34px minmax(0,1fr) 100px;gap:10px;width:100%!important;padding:14px;border-radius:48px;min-height:118px}
 #roles .ranking-row:nth-child(n) .ranking-cup{width:33px;height:42px}
 #roles .ranking-row:nth-child(n) h3{font-size:23px}
 #roles .ranking-row:nth-child(n) .ranking-value{width:100px;height:79px}
 #roles .ranking-row:nth-child(n) .ranking-number{font-size:34px}
 #roles .ranking-row:nth-child(n) .ranking-unit{font-size:12px}
 #roles .ranking-row:nth-child(1){grid-template-columns:38px minmax(0,1fr) 112px;min-height:170px;gap:10px;padding:18px 14px;border-radius:58px}
 #roles .ranking-row:nth-child(1) h3{font-size:29px}
 #roles .ranking-row:nth-child(1) .ranking-cup{width:37px;height:47px}
 #roles .ranking-row:nth-child(1) .ranking-value{width:112px;height:94px}
 #roles .ranking-row:nth-child(1) .ranking-number{font-size:42px}
 #roles .ranking-row:nth-child(n+6){grid-template-columns:24px minmax(0,1fr) 75px;min-height:85px;border-radius:25px}
 #roles .ranking-row:nth-child(n+6) .ranking-value{width:75px;height:60px}
 #roles .ranking-row:nth-child(n+6) .ranking-number{font:30px/1 Rounds,sans-serif}
 #roles .wall-bottom{align-items:flex-start;gap:12px}
 #roles .wall-bottom p{font-size:17px}
 #roles .text-button{font-size:17px;padding:13px 16px}
}
@media(max-width:360px){
 #roles .section-head h2{font-size:31px}
 #roles .ranking-row:nth-child(n){grid-template-columns:26px minmax(0,1fr) 76px;gap:7px;padding:12px 10px}
 #roles .ranking-row:nth-child(n) .ranking-cup{width:26px;height:34px}
 #roles .ranking-row:nth-child(n) h3{font-size:20px}
 #roles .ranking-row:nth-child(n) .ranking-value{width:76px;height:69px}
 #roles .ranking-row:nth-child(n) .ranking-number{font-size:28px}
 #roles .ranking-row:nth-child(1){grid-template-columns:28px minmax(0,1fr) 83px;gap:8px;padding:16px 12px}
 #roles .ranking-row:nth-child(1) h3{font-size:23px}
 #roles .ranking-row:nth-child(1) .ranking-value{width:83px;height:74px}
 #roles .ranking-row:nth-child(1) .ranking-number{font-size:31px}
 #roles .ranking-row:nth-child(n+6){grid-template-columns:20px minmax(0,1fr) 64px}
 #roles .ranking-row:nth-child(n+6) .ranking-value{width:64px}
 #roles .wall-bottom p{font-size:16px}
 #roles .text-button{font-size:16px;padding:13px}
}
@media(min-width:1101px){
 #roles .ranking-row:nth-child(1) h3{max-width:320px}
 #roles .ranking-row:nth-child(3) h3,#roles .ranking-row:nth-child(4) h3,#roles .ranking-row:nth-child(5) h3{max-width:260px}
}
@media(min-width:361px) and (max-width:760px){
 #roles .ranking-row:nth-child(1) h3{font-size:27px}
 #roles .ranking-row:nth-child(4) h3{font-size:22px}
}
@media(max-width:360px){#roles .ranking-row:nth-child(4) h3{font-size:19px}}
/* Keep a visible gap between the mobile leader name and its cloud. */
@media(min-width:361px) and (max-width:760px){#roles .ranking-row:nth-child(1) h3{font-size:25px}}
@media(max-width:360px){#roles .ranking-row:nth-child(1) h3{font-size:21px}}

/* Additional answers are an informational two-column list, not prize cards. */
#roles .role-ranking{grid-auto-rows:minmax(40px,auto)}
#roles .ranking-row:nth-child(n+6){grid-column:auto;grid-row:var(--extra-row);grid-template-columns:minmax(0,1fr) auto;gap:12px;min-height:40px;padding:6px 0;border:0!important;border-bottom:1px solid var(--tyoma-white)!important;border-radius:0;background:none}
#roles .ranking-row:nth-child(n+6) .ranking-position{display:none}
#roles .ranking-row:nth-child(n+6) h3{grid-column:1;font:500 19px/1.2 Rounds,sans-serif;text-wrap:pretty;max-width:none}
#roles .ranking-row:nth-child(n+6) .ranking-value{grid-column:2;width:auto;height:auto;display:flex;flex-direction:row;gap:5px;background:none;border-radius:0;white-space:nowrap}
#roles .ranking-row:nth-child(n+6) .ranking-number{font:700 20px/1.2 Rounds,sans-serif}
#roles .ranking-row:nth-child(n+6) .ranking-unit{font:12px/1.2 Circe,sans-serif}
@media(max-width:760px){
 #roles .role-ranking{flex-direction:row;flex-wrap:wrap;column-gap:16px}
 #roles .ranking-row:nth-child(n+6){width:calc(50% - 8px)!important;min-height:56px;gap:6px;padding:7px 0}
 #roles .ranking-row:nth-child(n+6) h3{font-size:15px}
 #roles .ranking-row:nth-child(n+6) .ranking-number{font-size:17px}
 #roles .ranking-row:nth-child(n+6) .ranking-unit{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%)}
}
@media(max-width:360px){#roles .ranking-row:nth-child(n+6) h3{font-size:14px}}
@media(min-width:761px){
 #roles .role-ranking:has(.ranking-row:nth-child(6)){row-gap:10px;grid-auto-rows:minmax(30px,auto)}
 #roles .ranking-row:nth-child(n+6){min-height:30px;padding:3px 0}
}

/* One fixed count axis and one common vote scale for all additional answers. */
#roles .ranking-row:nth-child(n+6){position:relative;grid-template-columns:minmax(0,1fr) 92px;padding-bottom:10px;border-bottom:0!important;background:linear-gradient(var(--tyoma-white),var(--tyoma-white)) left bottom/100% 3px no-repeat}
#roles .ranking-row:nth-child(n+6):after{content:'';position:absolute;left:0;bottom:0;top:auto;right:auto;width:var(--vote-share);height:3px;background:var(--tyoma-blue);border-radius:0;transform:none;mask:none;opacity:1}
#roles .ranking-row:nth-child(n+6) .ranking-value{display:grid;grid-template-columns:3ch 48px;width:92px;gap:5px;justify-content:end;align-items:baseline}
#roles .ranking-row:nth-child(n+6) .ranking-number{font-variant-numeric:tabular-nums;text-align:right;width:3ch}
#roles .ranking-row:nth-child(n+6) .ranking-unit{text-align:left}
@media(max-width:760px){
 #roles .ranking-row:nth-child(n+6){grid-template-columns:minmax(0,1fr) 30px}
 #roles .ranking-row:nth-child(n+6) .ranking-value{display:block;width:30px}
 #roles .ranking-row:nth-child(n+6) .ranking-number{display:block;width:30px}
}
#roles.concept-statistics{background:transparent}


