table {
    font-family: garamond-premier-pro, Adjusted Georgia Fallback, Times New Roman, serif;
    border-collapse: collapse;
    width: 100%;
    margin: 25px 0;
    font-size: 0.9em;
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* box-shadow: 0 0 20px rgba(0, 0, 0, 0.15); */
  }
  
  thead, tbody {
    width: 100%;
  }
  
  tr {
    display: table-row;
  }
  
  th, td {
    display: table-cell;
  }
  
  thead tr {
    text-align: left;
}


th, td {
    padding: 8px 15px;
    font-size: 18px;
    text-decoration: none !important;
    min-width: 200px;
}

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

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: 12px;
    padding-bottom: 12px;
    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: 12px;
    padding-bottom: 12px;
  }

  /* 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;
  }