/* =============================================================================
   TABLES — wp-block-table, horizontal scroll, logo_element
   ============================================================================= */

/* ── Base table wrapper ──────────────────────────────────────────────────────── */
.post_content .wp-block-table {
    width: 100%;
    overflow-x: auto;
}

.post_content .wp-block-table table {
    table-layout: fixed;
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
}

.post_content .wp-block-table th {
    background: #3C4FB5;
    color: #fff;
    font-weight: bold;
    text-align: center;
    padding: 6px 10px;
}

.post_content .wp-block-table td {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    vertical-align: top;
}

.post_content .wp-block-table th:first-child,
.post_content .wp-block-table td:first-child {
    min-width: 7.5rem;
    width: auto;
}

.post_content .wp-block-table tbody tr:nth-child(even) {
    background-color: #C0C9E5;
}

/* ── Large tables with horizontal scroll (.table-fixed-scroll) ───────────────── */
.post_content .wp-block-table.table-fixed-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.post_content .wp-block-table.table-fixed-scroll table {
    table-layout: fixed;
    min-width: 75rem;
    width: max-content;
    border-collapse: collapse;
}

.post_content .wp-block-table.table-fixed-scroll th {
    white-space: nowrap;
}

.post_content .wp-block-table.table-fixed-scroll td {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    vertical-align: top;
}

/* ── Logo element: vertically center images in first column ──────────────────── */
.logo_element table tbody tr td:nth-child(1) img {
    margin-top: auto;
    margin-bottom: auto;
}

/* ── Global table overflow fix (outside .post_content) ──────────────────────── */
.wp-block-table {
    width: 100%;
    overflow-x: auto;
    display: block;
}

.wp-block-table table {
    max-width: 100%;
    border-collapse: collapse;
}

/* ── Mobile: force block/scroll on all tables ────────────────────────────────── */
@media (max-width: 768px) {
    table {
        display: block;
        overflow-x: auto;
        max-width: 100%;
        -webkit-overflow-scrolling: touch;
    }
}
