.catoc {
    clear: both;
    margin: 24px 0;
    line-height: 1.5;
}

.catoc_i {
    display: inline-block;
    max-width: 100%;
    padding: 12px 16px;
    border: 1px solid #dddddd;
    border-radius: 3px;
    background: #ffffff;
    box-sizing: border-box;
}

.catoc-width-full .catoc_i {
    display: block;
    width: 100%;
}

.catoc-width-fixed .catoc_i {
    width: 360px;
}

.catoc-float-left {
    clear: none;
    float: left;
    margin: 6px 22px 18px 0;
}

.catoc-float-right {
    clear: none;
    float: right;
    margin: 6px 0 18px 22px;
}

.catoc_header {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 8px;
}

.catoc_title {
    font-weight: 700;
}

.catoc_toggle {
    appearance: none;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-size: 12px;
    line-height: 1;
    text-decoration: underline;
}

.catoc_items ol,
.catoc_items ul {
    margin: 0;
    padding-left: 20px;
}

.catoc_items li {
    margin: 3px 0;
    padding: 0;
}

.catoc_items li::marker {
    color: currentColor;
}

.catoc_items a {
    border: 0;
    box-shadow: none;
    text-decoration: none;
}

.catoc_items a:hover {
    text-decoration: underline;
}

.catoc-list-none .catoc_items ol,
.catoc-list-none .catoc_items ul {
    list-style: none;
    padding-left: 0;
}

.catoc-list-decimal .catoc_items ol {
    list-style-type: decimal;
}

.catoc-list-decimal-leading-zero .catoc_items ol {
    list-style-type: decimal-leading-zero;
}

.catoc-list-lower-alpha .catoc_items ol {
    list-style-type: lower-alpha;
}

.catoc-list-lower-roman .catoc_items ol {
    list-style-type: lower-roman;
}

.catoc-is-hidden .catoc_items {
    display: none;
}

.catoc_side {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 9998;
    font-family: inherit;
}

.catoc_side_tab {
    position: fixed;
    left: 0;
    top: 50%;
    display: flex;
    align-items: center;
    gap: 4px;
    width: 38px;
    min-height: 98px;
    padding: 10px 7px;
    border: 0;
    border-radius: 0 9px 9px 0;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.catoc_side_arrow {
    font-weight: 700;
    writing-mode: horizontal-tb;
}

.catoc_side_panel {
    position: fixed;
    left: 0;
    top: 0;
    width: 136px;
    max-width: 82vw;
    height: 100vh;
    overflow-y: auto;
    background: #ffffff;
    color: #111111;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.18);
    transform: translateX(-105%);
    transition: transform 0.22s ease;
}

.catoc_side.is-open .catoc_side_panel {
    transform: translateX(0);
}

.catoc_side.is-open .catoc_side_tab {
    opacity: 0;
    pointer-events: none;
}

.catoc_side_head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 15px;
    border-bottom: 1px solid #eeeeee;
    box-sizing: border-box;
}

.catoc_side_head strong {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
}

.catoc_side_close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #111111;
    cursor: pointer;
    font-size: 28px;
    line-height: 28px;
}

.catoc_side_list {
    margin: 26px 0 0;
    padding: 0 14px 0 30px;
    color: #8a8a8a;
    font-size: 14px;
    line-height: 1.75;
}

.catoc_side_list li {
    margin: 0;
    padding: 0;
}

.catoc_side_list a {
    color: #8a8a8a;
    text-decoration: none;
}

.catoc_side_list a:hover,
.catoc_side_list a.is-active {
    color: #111111;
}

@media (max-width: 640px) {
    .catoc,
    .catoc-float-left,
    .catoc-float-right {
        float: none;
        margin: 20px 0;
    }

    .catoc_i,
    .catoc-width-fixed .catoc_i {
        display: block;
        width: 100%;
    }

    .catoc_side {
        display: none;
    }
}
