/* ===== Base table styles (override Twenty Ten cleanly) ===== */
.entry-content table.google-sheet-table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
  table-layout: auto;
  background: #fff;
  color: #111;
  font-family: Georgia, "Bitstream Charter", serif !important; /* match Twenty Ten */
  font-size: 14px;
  line-height: 1.45;
}

.entry-content table.google-sheet-table th,
.entry-content table.google-sheet-table td {
  border: 1px solid #d9d9d9;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
  font-family: inherit !important; /* keep header/body consistent */
}

/* Header   appearance */
.entry-content table.google-sheet-table thead th {
  background: #f4f4f4;
  font-weight: 700 !important;
  font-style: normal !important;
  color: #111 !important;
}

/* Subtle zebra + hover */
.entry-content table.google-sheet-table tbody tr:nth-child(even) { background: #fafafa; }
.entry-content table.google-sheet-table tbody tr:hover { background: #fffbe6; }

/* Wrapper exists in markup; keep harmless overflow behavior */
.google-sheet-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ===== Emails table (Last, First, E-Mail) ===== */
.entry-content table.google-sheet-table--emails {
  table-layout: fixed; /* predictable widths */
}

.entry-content table.google-sheet-table--emails th:nth-child(1),
.entry-content table.google-sheet-table--emails td:nth-child(1) { width: 30%; } /* Last */

.entry-content table.google-sheet-table--emails th:nth-child(2),
.entry-content table.google-sheet-table--emails td:nth-child(2) { width: 30%; } /* First */

.entry-content table.google-sheet-table--emails th:nth-child(3),
.entry-content table.google-sheet-table--emails td:nth-child(3) {
  width: 40%;                 /* Email column */
  word-break: break-word;      /* break long addresses if needed */
  white-space: normal;         /* allow wrap for long emails */
}

/* ===== Address “cards” table (ONE column, multi-line cell) ===== */
.entry-content table.google-sheet-table--addresses-1col {
  table-layout: fixed;  /* wide single column fills width */
}

.entry-content table.google-sheet-table--addresses-1col th,
.entry-content table.google-sheet-table--addresses-1col td {
  white-space: pre-line; /* render \n from CSV as line breaks */
  padding: 10px 12px;
}

/* Tighter line-height for address cards so line breaks aren't double-spaced */
.entry-content table.google-sheet-table--addresses-1col td {
  line-height: 1.2; /* smaller than base table */
}

/* Optional: lighter separator between rows for readability */
.entry-content table.google-sheet-table--addresses-1col tbody tr + tr td {
  border-top: 1px solid #ddd;
}

/* ===== Small screens ===== */
@media (max-width: 640px) {
  .entry-content table.google-sheet-table { font-size: 13px; }
  .entry-content table.google-sheet-table th,
  .entry-content table.google-sheet-table td { padding: 6px 8px; }
}
