/* Modern TablePress / WP table styles — theme via CSS custom properties */

table.tablepress,
table[id^="tablepress-"],
.tablepress-table-wrapper table,
.wp-block-table table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: inherit;
    font-size: var(--tablepress-font-size, 14px);
    border-radius: var(--tablepress-border-radius, var(--block-border-radius, 10px));
    overflow: hidden;
    margin: 0 0 var(--section-spacing-bottom, 40px);
    background: var(--tablepress-tbody-bg, transparent);
    color: var(--tablepress-tbody-text, inherit);
    border: 1px solid var(--accent, transparent);
}

.tablepress-table-wrapper,
.wp-block-table {
    width: 100%;
    margin: 0 0 var(--section-spacing-bottom, 40px);
    border-radius: var(--tablepress-border-radius, var(--block-border-radius, 10px));
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tablepress-table-wrapper table,
.wp-block-table table {
    margin-bottom: 0;
}

table.tablepress thead th,
table[id^="tablepress-"] thead th,
.tablepress-table-wrapper thead th,
.wp-block-table thead th,
table.tablepress thead td,
table[id^="tablepress-"] thead td {
    background: var(--tablepress-thead-bg, #1a1a1a);
    color: var(--tablepress-thead-text, #fff);
    font-weight: 700;
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--tablepress-row-border, var(--accent, rgba(255, 255, 255, 0.12)));
}

table.tablepress tbody td,
table[id^="tablepress-"] tbody td,
.tablepress-table-wrapper tbody td,
.wp-block-table tbody td {
    background: var(--tablepress-tbody-bg, transparent);
    color: var(--tablepress-tbody-text, inherit);
    padding: 10px 14px;
    border-bottom: 1px solid var(--tablepress-row-border, var(--accent, rgba(255, 255, 255, 0.08)));
    vertical-align: middle;
}

table.tablepress tbody tr:nth-child(odd) td,
table[id^="tablepress-"] tbody tr:nth-child(odd) td,
.tablepress-table-wrapper tbody tr:nth-child(odd) td,
.wp-block-table tbody tr:nth-child(odd) td {
    background: var(--tablepress-tbody-bg, transparent);
}

table.tablepress tbody tr:nth-child(even) td,
table[id^="tablepress-"] tbody tr:nth-child(even) td,
.tablepress-table-wrapper tbody tr:nth-child(even) td,
.wp-block-table tbody tr:nth-child(even) td {
    background: var(--tablepress-alt-row-bg, rgba(255, 255, 255, 0.04));
}

table.tablepress tbody tr:hover td,
table[id^="tablepress-"] tbody tr:hover td,
.tablepress-table-wrapper tbody tr:hover td,
.wp-block-table tbody tr:hover td {
    background: var(--tablepress-alt-row-bg, rgba(255, 255, 255, 0.08));
}

table.tablepress tbody td:first-child,
table[id^="tablepress-"] tbody td:first-child,
.tablepress-table-wrapper tbody td:first-child,
.wp-block-table tbody td:first-child,
table.tablepress thead th:first-child,
table[id^="tablepress-"] thead th:first-child {
    font-weight: 700;
}

table.tablepress tbody tr:last-child td,
table[id^="tablepress-"] tbody tr:last-child td,
.tablepress-table-wrapper tbody tr:last-child td,
.wp-block-table tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 990px) {
    .tablepress-table-wrapper,
    .wp-block-table,
    table.tablepress,
    table[id^="tablepress-"] {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table.tablepress,
    table[id^="tablepress-"],
    .tablepress-table-wrapper table,
    .wp-block-table table {
        min-width: 560px;
        font-size: var(--tablepress-font-size, 13px);
    }
}
