/* Force all X10 TOCs to start closed, even if <details> has open attribute */
.spc-x10-toc-dropdown[open] > .spc-x10-toc-list {
  display: none;
}
.spc-x10-toc-dropdown > .spc-x10-toc-list {
  display: none;
}
.spc-x10-toc-dropdown[open] > .spc-x10-toc-list,
.spc-x10-toc-dropdown.open > .spc-x10-toc-list {
  display: block;
}

/* Frontend CSS for Simple Pillar Content Generator X10 - TOC Dropdown */

.spc-x10-toc-instructions {
    margin-bottom: 10px;
    font-size: 1em;
    color: #444;
    background: #f8f9fa;
    padding: 10px 16px;
    border-left: 4px solid #667eea;
    border-radius: 6px;
}

.spc-x10-toc-dropdown {
    margin-bottom: 24px;
    background: #fff;
    border: 1.5px solid #e1e5e9;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.07);
    padding: 0 0 10px 0;
    transition: box-shadow 0.2s;
}

.spc-x10-toc-dropdown[open] {
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.12);
}

.spc-x10-toc-summary {
    font-size: 1.15em;
    font-weight: 600;
    color: #667eea;
    padding: 16px 20px;
    cursor: pointer;
    background: linear-gradient(90deg, #f8f9ff 0%, #e9ecef 100%);
    border-radius: 8px 8px 0 0;
    outline: none;
    transition: background 0.2s;
    user-select: none;
}

.spc-x10-toc-dropdown[open] .spc-x10-toc-summary {
    background: linear-gradient(90deg, #e9ecef 0%, #f8f9ff 100%);
}

.spc-x10-toc-list {
    margin: 0;
    padding: 12px 28px 0 28px;
    list-style: decimal;
}

.spc-x10-toc-list li {
    margin-bottom: 8px;
    font-size: 1em;
    line-height: 1.5;
}

.spc-x10-toc-level-2 {
    font-weight: 600;
    color: #333;
    margin-left: 0;
}
.spc-x10-toc-level-3 {
    font-weight: 500;
    color: #555;
    margin-left: 18px;
}
.spc-x10-toc-level-4 {
    font-weight: 400;
    color: #777;
    margin-left: 36px;
}

.spc-x10-toc-list a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.15s;
}
.spc-x10-toc-list a:hover,
.spc-x10-toc-list a:focus {
    color: #764ba2;
    text-decoration: underline;
}
