/* TablePress tables */
.tablepress {
    /* Override Tailwind's img { display: block } reset */
}

.tablepress img {
    display: inline;
    vertical-align: middle;
}

.tablepress {
    width: auto;
    border-collapse: collapse;
    margin: 1.5rem auto;
    font-size: 0.95rem;
}

.tablepress th,
.tablepress td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.tablepress thead th {
    /* Match site-wide vt-maroon (#440000) instead of VT's official Pantone 504 (#630031),
       which reads more purple/burgundy and clashes with the rest of the UI. */
    background-color: #440000;
    color: white;
    font-weight: 600;
}

/* Ensure all text in headers is white, including bold/strong tags */
.tablepress thead th,
.tablepress thead th * {
    color: white !important;
}

.tablepress tbody tr.odd {
    background-color: #f9f9f9;
}

.tablepress tbody tr.even {
    background-color: #ffffff;
}

.tablepress tbody tr:hover {
    background-color: #fff3e0;
}

/* Responsive tables */
@media (max-width: 640px) {
    .tablepress {
        font-size: 0.85rem;
        display: block;
        overflow-x: auto;
    }
    
    .tablepress th,
    .tablepress td {
        padding: 0.4rem 0.5rem;
        white-space: nowrap;
    }
}
