/*
 * Auto Blog Agent — Quick Facts Table Styles
 * Applied to .aba-quick-facts blocks injected into post content.
 * Structure: div.aba-quick-facts > h2.md_title.m-0 + div.table-responsive > table.aba-quick-facts__table
 */

/* ── Container ─────────────────────────────────────────────────────────── */
.aba-quick-facts {
  margin: 2rem 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(26, 86, 219, 0.10), 0 1px 4px rgba(0, 0, 0, 0.08);
  border: 1.5px solid #c7d7f8;
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
}

/* ── Table ─────────────────────────────────────────────────────────────── */
.aba-quick-facts__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 0.92rem;
  margin: 0 !important;
}

/* ── All rows ──────────────────────────────────────────────────────────── */
.aba-quick-facts__table tbody tr {
  transition: background 0.15s ease;
  border-bottom: 1px solid #e8eef8;
}

.aba-quick-facts__table tbody tr:last-child {
  border-bottom: none;
}

/* First row — pink/magenta highlight (matches screenshot) */
.aba-quick-facts__table tbody tr:first-child {
  background: #c91f63;
}

.aba-quick-facts__table tbody tr:first-child th,
.aba-quick-facts__table tbody tr:first-child td {
  color: #fff;
  border-right-color: rgba(255, 255, 255, 0.25);
  font-weight: 700;
}

/* Remaining rows — alternating */
.aba-quick-facts__table tbody tr:nth-child(even) {
  background: #f9f9f9;
}

.aba-quick-facts__table tbody tr:nth-child(odd):not(:first-child) {
  background: #ffffff;
}

.aba-quick-facts__table tbody tr:not(:first-child):hover {
  background: #eff4ff;
}

/* ── Cells ─────────────────────────────────────────────────────────────── */
.aba-quick-facts__table th,
.aba-quick-facts__table td {
  padding: 11px 20px;
  text-align: left;
  vertical-align: middle;
  line-height: 1.5;
}

.aba-quick-facts__table th {
  width: 38%;
  font-weight: 600;
  color: #1a1a1a;
  background: transparent;
  border-right: 2px solid #e8eef8;
  white-space: nowrap;
}

.aba-quick-facts__table td {
  color: #2d3748;
  font-weight: 400;
}

/* ── Dark Mode Support ─────────────────────────────────────────────────── */
body.dark-mode .aba-quick-facts {
  border-color: #334155;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.30);
}

body.dark-mode .aba-quick-facts__table {
  background: #1e293b;
}

body.dark-mode .aba-quick-facts__table tbody tr:nth-child(even) {
  background: #273349;
}

body.dark-mode .aba-quick-facts__table tbody tr:nth-child(odd):not(:first-child) {
  background: #1e293b;
}

body.dark-mode .aba-quick-facts__table tbody tr:not(:first-child):hover {
  background: #2d3f5e;
}

body.dark-mode .aba-quick-facts__table th {
  color: #e2e8f0;
  border-right-color: #334155;
}

body.dark-mode .aba-quick-facts__table td {
  color: #cbd5e1;
}

body.dark-mode .aba-quick-facts__table tbody tr {
  border-bottom-color: #334155;
}

/* ── Mobile Responsive ─────────────────────────────────────────────────── */
@media (max-width: 600px) {

  .aba-quick-facts__table th,
  .aba-quick-facts__table td {
    padding: 9px 14px;
    font-size: 0.85rem;
  }

  .aba-quick-facts__table th {
    width: 42%;
    white-space: normal;
  }

}