/* AI Press Run v1.13.0 — stable, accessible article table presentation. */

.entry-content .wp-block-table,
.editor-styles-wrapper .wp-block-table {
  margin: 1.5rem 0;
  overflow-x: auto;
  border: 1px solid #b8c6d4;
  border-radius: 8px;
  background: #ffffff;
}

.entry-content table,
.editor-styles-wrapper table {
  width: 100%;
  margin: 0;
  border: 1px solid #b8c6d4;
  border-collapse: collapse;
  color: #1d2f42;
  font-size: 1rem;
  line-height: 1.65;
}

.entry-content table thead th,
.editor-styles-wrapper table thead th,
.entry-content table > tbody:first-child > tr:first-child > th,
.editor-styles-wrapper table > tbody:first-child > tr:first-child > th {
  padding: 0.82rem 0.9rem;
  border: 1px solid #315270;
  background: #12395b;
  color: #ffffff;
  font-weight: 700;
  text-align: left;
}

.entry-content table tbody tr:nth-child(odd),
.editor-styles-wrapper table tbody tr:nth-child(odd) {
  background: #f8fafc;
}

.entry-content table tbody tr:nth-child(even),
.editor-styles-wrapper table tbody tr:nth-child(even) {
  background: #eaf1f7;
}

.entry-content table tbody th,
.entry-content table tbody td,
.editor-styles-wrapper table tbody th,
.editor-styles-wrapper table tbody td {
  padding: 0.78rem 0.9rem;
  border: 1px solid #c9d5e0;
  vertical-align: top;
}

.entry-content table tbody th,
.editor-styles-wrapper table tbody th {
  color: #12395b;
  font-weight: 700;
}

.entry-content table > tbody:first-child > tr:first-child > th,
.editor-styles-wrapper table > tbody:first-child > tr:first-child > th {
  color: #ffffff;
}

@media (max-width: 640px) {
  .entry-content table,
  .editor-styles-wrapper table {
    min-width: 560px;
    font-size: 0.95rem;
  }
}
