/* TNT Index - Table of Contents */

.tnt-index-container {
    background: #0c0c0c;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-left: 4px solid var(--tnt-gold);
    border-radius: 4px; /* Slightly rounder to match other plugins */
    padding: 1.5rem;
    margin-bottom: 3rem; /* Push content down */
    width: 100%; /* Full width */
    max-width: 100%; /* Ensure it fills container */
    font-family: 'Merriweather', serif;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    box-sizing: border-box; /* Include padding in width */
    clear: both; /* Ensure it doesn't wrap around floats */
    display: block; /* Force block level */
}

/* Remove the desktop float media query entirely */
/* The previous media query floating it right is removed here */

.tnt-index-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--tnt-gold);
    font-family: 'Beleren', 'Cinzel', serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.75rem;
}

.tnt-index-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    /* Optional: Multi-column layout for the list itself on desktop */
    columns: 1; 
}

@media (min-width: 768px) {
    .tnt-index-list {
        columns: 2; /* Split long lists into 2 columns on desktop */
        column-gap: 3rem;
    }
}

.tnt-index-list li {
    margin-bottom: 0.75rem;
    line-height: 1.4;
    break-inside: avoid; /* Don't split items across columns */
}

.tnt-index-list li.main-item {
    font-weight: 700;
}

.tnt-index-list li.sub-item {
    padding-left: 1rem;
    font-size: 0.9em;
    border-left: 1px solid rgba(255,255,255,0.1);
    color: #9ca3af;
    margin-left: 0.25rem;
}

.tnt-index-link {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.2s;
    font-size: 0.95rem;
    display: block;
    padding: 0.25rem 0;
}

.tnt-index-link:hover {
    color: var(--tnt-gold-light);
    transform: translateX(4px);
}

/* Clearfix */
.entry-content::after {
    content: "";
    display: table;
    clear: both;
}