/*
Theme Name: Sports-theme
Theme URI: https://wordpress.org/themes/mysite/
Author: djabanel
Description: Description
Requires at least: 6.4
Tested up to: 6.6
Requires PHP: 7.0
Version: 1.2
License: GNU General Public License v2 or later
*/


@media (max-width: 768px) {
        .table-scroll {
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
         
            border: 1px solid #e5e7eb;
            border-radius: 8px;
        }

        .table-scroll table {
            margin: 0;
            min-width: 600px;
        }
    }


    .table-scroll table,
    .sbx-content table,
    .entry-content table,
    .content-body table,
    article table {
        width: 100%;
        border-collapse: collapse;
        border-spacing: 0;
   
        font-size: 0.95rem;
        line-height: 1.5;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    }


    .table-scroll table caption,
    .sbx-content table caption,
    .entry-content table caption,
    .content-body table caption,
    article table caption {
        caption-side: top;
        text-align: left;
        padding: 0.75rem 1rem;
        font-weight: 700;
        font-size: 0.95rem;
        color: #1e293b;
        background: #f8fafc;
        border-bottom: 1px solid #e5e7eb;
    }


    .table-scroll table thead,
    .sbx-content table thead,
    .entry-content table thead,
    .content-body table thead,
    article table thead {
        background: #939393;
        color: #fff;
    }

    .table-scroll table th,
    .sbx-content table th,
    .entry-content table th,
    .content-body table th,
    article table th {
        padding: 0.75rem 1rem;
        text-align: left;
        font-weight: 600;
        font-size: 0.85rem;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #fff;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
		
		overflow-wrap: break-word;
		word-break: break-word;  /* fallback for old iOS */
		hyphens: auto;
    }


    .table-scroll table td,
    .sbx-content table td,
    .entry-content table td,
    .content-body table td,
    article table td {
        padding: 0.7rem 1rem;
        text-align: left;
        color: #334155;
        border-bottom: 1px solid #f1f5f9;
        vertical-align: top;
    }


    .table-scroll table tbody tr:last-child td,
    .sbx-content table tbody tr:last-child td,
    .entry-content table tbody tr:last-child td,
    .content-body table tbody tr:last-child td,
    article table tbody tr:last-child td {
        border-bottom: none;
    }


    .table-scroll table tbody tr:nth-child(even),
    .sbx-content table tbody tr:nth-child(even),
    .entry-content table tbody tr:nth-child(even),
    .content-body table tbody tr:nth-child(even),
    article table tbody tr:nth-child(even) {
        background: #f8fafc;
    }


    .table-scroll table tbody tr:hover,
    .sbx-content table tbody tr:hover,
    .entry-content table tbody tr:hover,
    .content-body table tbody tr:hover,
    article table tbody tr:hover {
        background: #eff6ff;
        transition: background 0.15s ease;
    }

    
    .table-scroll table tbody td:first-child,
    .sbx-content table tbody td:first-child,
    .entry-content table tbody td:first-child,
    .content-body table tbody td:first-child,
    article table tbody td:first-child {
        font-weight: 600;
        color: #1e293b;
    }


    @media (max-width: 768px) {
        .table-scroll table,
        .sbx-content table,
        .entry-content table,
        .content-body table,
        article table {
            font-size: 0.85rem;
        }

        .table-scroll table th,
        .table-scroll table td,
        .sbx-content table th,
        .sbx-content table td,
        .entry-content table th,
        .entry-content table td,
        .content-body table th,
        .content-body table td,
        article table th,
        article table td {
            padding: 0.6rem 0.75rem;
        }
    }


/* ===== TABLE OF CONTENTS ===== */
.toc-wrap {
    background-color: var(--toc-bg);
    border-radius: 12px;
    padding: 20px 25px;
    margin: 30px 0;
    border: 1px solid var(--toc-border);
}

.toc-wrap__title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 8px;
}
.toc-list > li:first-child {display: none;}

.toc-list a {
    text-decoration: underline;
    color: var(--text-secondary);
    transition: color 0.2s;
}

.toc-list a:hover {
    color: var(--accent-primary);
}