/* New styles for the knowledge base page */
#content {
    padding: 2em;
}

#content details {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 1.5em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* a little trick to make border-radius work with children */
}

#content summary {
    padding: 1em 1.5em;
    font-weight: 600;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: background-color 0.2s ease-in-out;
}

#content summary:hover {
    background-color: #f9f9f9;
}

#content details[open] > summary {
    border-bottom: 1px solid #e0e0e0;
}

/* Top-level summaries (PART 1, PART 2) */
#content > details > summary {
    background-color: #f1f8ff;
    color: #2a6496;
}

/* Chapter-level summaries */
#content > details > details > summary {
    background-color: #fafafa;
    font-weight: 500;
}

#content ul {
    list-style: none;
    padding: 1em 1.5em;
    margin: 0;
}

#content li {
    padding: 0.5em 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

#content li:last-child {
    border-bottom: none;
}

#content li a {
    text-decoration: none;
    color: #337ab7;
    flex-grow: 1;
}

#content li a:hover {
    text-decoration: underline;
}

#content .chapter-number {
    color: #888;
    font-size: 0.9em;
    margin-left: 1em;
    flex-shrink: 0;
}

/* Style the summary marker */
#content summary::marker {
    color: #3a739b;
}

#content summary::-webkit-details-marker {
    color: #3a739b;
}
