#content .wSidebar .sidebar .specialty-legend {
    margin: 18px 0 22px;
    padding: 16px;
    border: 1px solid #e8e1e2;
    border-top: 3px solid #c41f26;
    background: #fff;
    box-shadow: 0 8px 24px rgba(54, 25, 28, 0.06);
    color: #333;
}

#content .specialty-legend summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
    cursor: pointer;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    color: #292426;
}

#content .specialty-legend summary::-webkit-details-marker {
    display: none;
}

#content .specialty-legend summary::after {
    content: "";
    flex: 0 0 7px;
    height: 7px;
    margin-right: 2px;
    border-right: 2px solid #94191d;
    border-bottom: 2px solid #94191d;
    transform: translateY(-2px) rotate(45deg);
}

#content .specialty-legend[open] summary::after {
    transform: translateY(2px) rotate(225deg);
}

#content .specialty-legend dl {
    margin: 10px 0 0;
}

#content .specialty-legend dl > div {
    display: grid;
    grid-template-columns: 65px minmax(0, 1fr);
    gap: 8px;
    align-items: start;
    padding: 8px 0;
}

#content .specialty-legend dl > div + div {
    border-top: 1px solid #f0ebeb;
}

#content .specialty-legend dt {
    justify-self: start;
    padding: 2px 6px;
    border: 1px solid #f2d5d7;
    border-radius: 5px;
    background: #fff0f0;
    color: #94191d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
}

#content .specialty-legend dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media screen and (max-width: 55em) {
    #content .wSidebar .sidebar .specialty-legend {
        margin: 12px 0 16px;
        padding: 0 12px;
    }

    #content .specialty-legend summary {
        min-height: 44px;
        font-size: 15px;
    }

    #content .specialty-legend dl {
        margin: 0 0 8px;
    }
}
