/* ============================================
   FORCE FULL BRIGHTNESS - OVERRIDE GLOBAL DIMMING
   ============================================ */

   body,
   html,
   .book-toc-container,
   .book-toc-container * {
       opacity: 1 !important;
       filter: none !important;
       mix-blend-mode: normal !important;
   }
   
   /* Remove any global overlays */
   body::before,
   body::after,
   .site-content::before,
   .site-content::after,
   .book-toc-container::before,
   .book-toc-container::after {
       content: none !important;
       display: none !important;
   }

/* ============================================
   CONTAINER
   ============================================ */

   .book-toc-container {
    background: linear-gradient(180deg, #1a0f2e 0%, #2a1a4e 100%) !important;
    min-height: 100vh !important;
    color: #ffffff !important;
    font-family: 'Cormorant Garamond', serif !important;
    padding: 60px 40px !important;
    width: 100% !important;
}

.book-toc-container .container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    width: 100% !important;
    padding: 0 !important;
}

/* ============================================
   HERO SECTION - TIGHTENED SPACING
   ============================================ */

.toc-hero {
    text-align: center !important;
    margin-bottom: 0 !important;
    padding-bottom: 20px !important;
    border-bottom: none !important;
}

.toc-title {
    font-family: 'Playfair Display', serif !important;
    font-size: 72px !important;
    font-weight: 900 !important;
    margin-bottom: 10px !important;
    background: linear-gradient(135deg, #f4e4c1 0%, #d4af37 50%, #f4e4c1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    letter-spacing: 2px !important;
}

.toc-subtitle {
    font-size: 20px !important;
    color: rgba(212, 175, 55, 0.7) !important;
    margin-bottom: 30px !important;
    font-weight: 400 !important;
    letter-spacing: 2px !important;
}

.front-matter {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 15px !important;
    font-size: 16px !important;
}

.front-matter-link {
    color: #d4af37 !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.front-matter-link:hover {
    color: #f4e4c1 !important;
}

.separator {
    color: rgba(212, 175, 55, 0.4) !important;
}

/* ============================================
   BREADCRUMB SPACING & BORDER REMOVAL
   ============================================ */

.book-toc-container .breadcrumbs {
    margin-top: 0 !important;
    margin-bottom: 40px !important;
    border-top: none !important;
    border-bottom: none !important;
}

/* ============================================
   TWO-COLUMN GRID LAYOUT (FORCED)
   ============================================ */

.toc-sections {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 60px 80px !important;
    margin-bottom: 60px !important;
    width: 100% !important;
    max-width: 1400px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.toc-section {
    display: block !important;
    width: 100% !important;
}

/* ============================================
   SECTION HEADERS
   ============================================ */

.section-header {
    display: block !important;
    text-decoration: none !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid !important;
    border-image: linear-gradient(90deg, #d4af37 0%, #f4e4c1 50%, #d4af37 100%) 1 !important;
    transition: all 0.3s ease !important;
}

.section-header:hover {
    transform: translateX(3px) !important;
}

.section-header h2 {
    font-family: 'Playfair Display', serif !important;
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #d4af37 !important;
    margin-bottom: 8px !important;
    transition: color 0.3s ease !important;
    letter-spacing: 1px !important;
}

.section-header:hover h2 {
    color: #f4e4c1 !important;
}

.section-description {
    font-size: 14px !important;
    color: rgba(212, 175, 55, 0.6) !important;
    font-style: italic !important;
    margin: 0 !important;
}

/* ============================================
   LAWS LIST
   ============================================ */

.laws-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.law-item {
    margin-bottom: 12px !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
}

/* Published Laws (Golden) */
.law-item.published .law-link {
    color: #d4af37 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    display: inline-block !important;
}

.law-item.published .law-link:hover {
    color: #f4e4c1 !important;
    transform: translateX(3px) !important;
}

/* Unpublished Laws (Grey) */
.law-item.unpublished .law-link-disabled {
    color: rgba(255, 255, 255, 0.25) !important;
    cursor: not-allowed !important;
}

.law-number {
    font-weight: 700 !important;
    font-family: 'Playfair Display', serif !important;
}

.law-title-text {
    font-weight: 400 !important;
}

/* ============================================
   FOOTNOTES SECTION
   ============================================ */

.toc-footnotes {
    text-align: center !important;
    padding-top: 40px !important;
    border-top: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.footnote-link {
    color: #d4af37 !important;
    text-decoration: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    transition: color 0.3s ease !important;
}

.footnote-link:hover {
    color: #f4e4c1 !important;
}



/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 968px) {
    .toc-sections {
        grid-template-columns: 1fr !important;
        gap: 50px !important;
    }
    
    .toc-title {
        font-size: 48px !important;
    }
    
    .book-toc-container {
        padding: 40px 20px !important;
    }
}