/* Competence panel. A fixed stage prevents layout shifts between professions. */
.competence-panel { min-width: 0; border-radius: var(--radius); padding: 30px 32px 22px; background: #f3f3f3; border: 1px solid #ededed; }
.panel-topline { display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 11px; color: var(--muted); }
.panel-mark { font-size: 16px; font-weight: 700; color: var(--firm-red); letter-spacing: -.06em; }
.panel-title { margin-top: 35px !important; font-size: 27px; line-height: 1.28; letter-spacing: -.035em; font-weight: 600; }
.role-rotator { margin-top: 28px; }
.role-stage { display: grid; min-height: 156px; overflow: hidden; }
.role-slide { grid-area: 1 / 1; display: flex; flex-direction: column; align-items: start; opacity: 0; visibility: hidden; transform: translateY(20px); transition: opacity .55s ease, transform .65s cubic-bezier(.22,.68,0,1), visibility .65s; }
.role-slide.is-active { opacity: 1; visibility: visible; transform: translateY(0); }
.role-slide.is-leaving { opacity: 0; transform: translateY(-18px); visibility: visible; }
.role-index { color: #777; font-size: 10px; letter-spacing: .06em; }
.role-name { font-size: clamp(24px, 2.5vw, 34px); font-weight: 600; letter-spacing: -.04em; color: var(--firm-red); line-height: 1.25; margin-top: 13px; white-space: nowrap; }
.role-description { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.rotator-controls { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 10px; }
.role-indicators { display: flex; gap: 5px; }
.role-indicators i { display: block; width: 18px; height: 2px; background: #d8d8d8; transition: background-color .3s; }
.role-indicators i.is-active { background: var(--firm-red); }
.rotation-toggle { display: inline-flex; align-items: center; gap: 10px; border: 0; background: transparent; min-width: 90px; min-height: 44px; justify-content: end; font-size: 11px !important; color: var(--muted); cursor: pointer; padding: 8px 0 8px 8px; }
.rotation-toggle:hover { color: var(--firm-red); }
.panel-bottom { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #ddd; margin-top: 15px; padding-top: 20px; color: var(--muted); font-size: 10px; }
.panel-bottom > span:nth-child(2) { color: var(--firm-red); }
@media (max-width: 1050px) and (min-width: 801px) { .competence-panel { padding-inline: 24px; } .role-name { font-size: 27px; } }
@media (max-width: 800px) { .competence-panel { max-width: 600px; width: 100%; } .role-name { font-size: 34px; } .role-stage { min-height: 156px; } }
@media (max-width: 600px) { .competence-panel { padding: 23px; } .panel-title { margin-top: 24px !important; font-size: 25px; } .role-name { font-size: clamp(24px, 7.1vw, 33px); } .panel-bottom { font-size: 9px; } }
