﻿.function-box {
    margin-bottom: 2rem;
    
}

    .function-box .title-bar {
        font-size: 0.85rem;
        font-weight:600;
        border-bottom: 1px solid var(--bs-secondary);
        color: #94a3b8; /*#475569; light*/
        line-height: 1.4;
        padding-bottom: 0.25rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        user-select: none;
        transition: color 0.2s ease;
    }

.function-box .title-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.function-box .toggle-icon {
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #666;
    transition: transform 0.2s ease;
}

    .function-box .toggle-icon.expanded {
        transform: rotate(180deg);
    }

    .function-box .content {
        padding: 20px;
    }

    .function-box .content.collapsed {
        display: none;
    }

    .function-box .section {
        margin-bottom: 16px;
    }

    .function-box .section:last-child {
        margin-bottom: 0;
    }

    .function-box .section-title {
        font-size: 0.85rem;
        font-weight: 600;
        margin-bottom: 0.5rem;
        color: #94a3b8; /*#64748b; light*/
    }

    .function-box .section-content {
        color: #e2e8f0; /*#334155; light*/
        font-size: 0.80rem;
        line-height: 1.6;
        padding: 0 10px;
    }

    .function-box .param-list,
    .function-box .event-list {
        list-style: none;
        padding: 0 10px;
    }

    .function-box .buffered-param-list {
        list-style: none;
        padding: 10px 0px 0px 30px;
    }

    .function-box .param-list li,
    .function-box .event-list li {
    }

    .function-box .param-name,
    .function-box .event-name {
        
    }

    .function-box .buffered-return-value {
        color: #e2e8f0; /*#334155; light*/
        font-size: 0.80rem;
        line-height: 1.6;
        padding: 0px 0px 10px 10px;
    }


.toc-box {
    max-width: 800px;
    margin: 0 auto 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: var(--color-bg-tertiary);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #333;
}