/* Table styles for post content - Mobile */
table {
    font-family: garamond-premier-pro, Adjusted Georgia Fallback, Times New Roman, serif;
    border-collapse: collapse;
    width: 100%;
    margin: 15px 0;
    font-size: 0.85em;
    display: block;
    overflow-x: auto;
    overflow-y: visible;
    height: max-content !important;
    -webkit-overflow-scrolling: touch;
}

thead tr {
    text-align: left;
}

th, td {
    padding: 6px 10px;
    font-size: 15px;
    text-decoration: none !important;
}

td, th {
    border: 1px solid #ddd;
    padding: 6px;
}

tbody tr {
    border-bottom: 1px solid #dddddd;
}

tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

tr:nth-child(even){
    background-color: #f2f2f2;
}

thead {
    padding-top: 10px;
    padding-bottom: 10px;
    text-align: left;
    background-color: black !important;
    color: white;
}

/* Ensure first tr in thead has black background */
.post-content table thead tr,
.post-content table thead tr:first-child {
    background-color: black !important;
}

/* First tbody row is the header ONLY when there's no thead */
.post-content table:not(:has(thead)) tbody tr:first-child {
    background-color: black !important;
}

.post-content table:not(:has(thead)) tbody tr:first-child td {
    color: white;
    font-weight: 600;
    padding-top: 10px;
    padding-bottom: 10px;
}

/* Remove underlines from ALL content in header rows (including spans with inline styles) */
.post-content table thead th,
.post-content table thead th *,
.post-content table thead td,
.post-content table thead td *,
.post-content table:not(:has(thead)) tbody tr:first-child td,
.post-content table:not(:has(thead)) tbody tr:first-child td * {
    text-decoration: none !important;
}

