.profile-site-about,
.profile-site-knowledge,
body.route-profile_site .profile-site-panel--side {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(91, 126, 178, .15);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(17, 43, 74, .09);
}

.profile-site-about::before,
.profile-site-knowledge::before,
body.route-profile_site .profile-site-panel--side::before,
body.route-profile_site .ambasador-profile-section > .profile-site-shell::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #42b9dc, #8067d1 55%, #e65aae);
    content: "";
}

.profile-site-about {
    padding: clamp(26px, 4vw, 42px);
}

.profile-site-knowledge {
    padding: clamp(24px, 3vw, 34px);
}

body.route-profile_site .profile-site-panel--side {
    padding: 25px;
}

body.route-profile_site .ambasador-profile-section {
    padding: 0 0 48px;
    border: 0;
    background: #f4f7fb;
}

body.route-profile_site .ambasador-profile-section > .profile-site-shell {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid rgba(91, 126, 178, .15);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 44px rgba(17, 43, 74, .09);
}

body.route-profile_site .ambasador-profile-heading {
    margin-bottom: 16px;
}

body.route-profile_site .ambasador-profile-heading > span {
    display: inline-flex;
    width: fit-content;
    padding: 7px 12px;
    border: 1px solid rgba(65, 136, 245, .18);
    border-radius: 999px;
    color: #245aa8;
    background: linear-gradient(110deg, rgba(106, 214, 247, .2), rgba(246, 140, 203, .14));
    font-size: .82rem;
    font-weight: 800;
    letter-spacing: .02em;
    text-transform: none;
}

body.route-profile_site .ambasador-profile-heading h2 {
    margin: 8px 0 0;
    color: #101b31;
    font-family: var(--pp-font);
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -.015em;
}

body.route-profile_site .ambasador-profile-feature {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 18px;
    padding: 19px;
    border-color: #dce5ef;
    border-left-color: #687782;
    border-radius: 14px;
    background: linear-gradient(145deg, #fff, #f8fbff);
    box-shadow: 0 10px 24px rgba(17, 43, 74, .06);
}

body.route-profile_site .ambasador-profile-feature.level-bronze { border-left-color: #956039; }
body.route-profile_site .ambasador-profile-feature.level-silver { border-left-color: #75828b; }
body.route-profile_site .ambasador-profile-feature.level-gold { border-left-color: #ba8215; }

body.route-profile_site .ambasador-profile-feature h3 {
    color: #17243d;
    font-size: clamp(1.3rem, 2.4vw, 1.75rem);
}

body.route-profile_site .ambasador-profile-years {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 12px;
}

body.route-profile_site .ambasador-profile-years > article {
    padding: 16px;
    border-color: #dce5ef;
    border-radius: 13px;
    background: #f8fbff;
}

body.route-profile_site .ambasador-profile-ranking-link {
    padding: 9px 14px;
    border: 1px solid rgba(36, 90, 168, .18);
    border-radius: 999px;
    color: #245aa8;
    background: rgba(106, 214, 247, .12);
    font-weight: 800;
    text-decoration: none;
}

.profile-site-knowledge__groups {
    display: grid;
    gap: 11px;
    margin-top: 26px;
}

.profile-site-knowledge-group {
    overflow: clip;
    border: 1px solid #dfe5ed;
    border-radius: 14px;
    background: #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.profile-site-knowledge-group[open] {
    border-color: rgba(65, 136, 245, .42);
    box-shadow: 0 14px 32px rgba(56, 82, 132, .12);
}

.profile-site-knowledge-group[open] > summary {
    background: linear-gradient(110deg, rgba(106, 214, 247, .18), rgba(246, 140, 203, .12));
}

.profile-site-knowledge-group summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 18px;
    align-items: center;
    gap: 15px;
    min-height: 64px;
    padding: 15px 18px;
    cursor: pointer;
    list-style: none;
}

.profile-site-knowledge-group summary::-webkit-details-marker {
    display: none;
}

.profile-site-knowledge-group summary::after {
    width: 9px;
    height: 9px;
    border-right: 2px solid #1c3151;
    border-bottom: 2px solid #1c3151;
    content: "";
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
}

.profile-site-knowledge-group[open] > summary::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

.profile-site-knowledge-group summary:focus-visible {
    outline: 3px solid rgba(28, 95, 194, .34);
    outline-offset: -3px;
}

.profile-site-knowledge-group summary span {
    display: grid;
    gap: 3px;
}

.profile-site-knowledge-group summary small {
    color: #1c5fc2;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.profile-site-knowledge-group summary strong {
    color: #142038;
    font-size: 1.1rem;
}

.profile-site-knowledge-group summary em {
    color: #4b5d77;
    font-size: .82rem;
    font-style: normal;
    font-weight: 700;
    white-space: nowrap;
}

.profile-site-knowledge-group__body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
    border-top: 1px solid #e8edf4;
}

.profile-site-dance {
    padding: 17px;
    border: 1px solid #dbe7f3;
    border-left: 3px solid #6ad6f7;
    border-radius: 12px;
    background: linear-gradient(145deg, #fff, rgba(246, 140, 203, .07));
}

.profile-site-dance h3 {
    margin: 0 0 12px;
    color: #17243d;
    font-size: 1.05rem;
}

.profile-site-dance dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0;
}

.profile-site-dance dl > div {
    padding: 9px 10px;
    border-radius: 9px;
    background: linear-gradient(120deg, rgba(106, 214, 247, .13), rgba(151, 107, 234, .08));
}

.profile-site-dance dt {
    margin-bottom: 2px;
    color: #647086;
    font-size: .76rem;
    font-weight: 700;
}

.profile-site-dance dd {
    margin: 0;
    color: #20324e;
    font-size: .84rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

@media (max-width: 680px) {
    .profile-site-about,
    .profile-site-knowledge,
    body.route-profile_site .ambasador-profile-section > .profile-site-shell {
        border-radius: 16px;
    }

    body.route-profile_site .ambasador-profile-feature {
        grid-template-columns: 1fr;
    }

    body.route-profile_site .ambasador-profile-feature__badge {
        grid-template-columns: auto auto;
        justify-content: start;
        align-items: center;
    }

    .profile-site-knowledge-group__body,
    .profile-site-dance dl {
        grid-template-columns: 1fr;
    }

    .profile-site-knowledge-group summary {
        grid-template-columns: minmax(0, 1fr) 16px;
    }

    .profile-site-knowledge-group summary em {
        display: none;
    }
}
