/* ==============================================================================
   APA Publication Table Formatting (APA 7th Edition)
   Medical Research Standard: Clean, No Vertical Borders, Exact Horizontal Lines
   ============================================================================== */

.apa-table-wrapper {
  margin: 16px 0;
  width: 100%;
  overflow-x: auto;
}

.apa-table-title {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 2px;
}

.apa-table-subtitle {
  font-family: var(--font-serif);
  font-size: 13px;
  font-style: italic;
  color: #374151;
  margin-bottom: 8px;
}

.apa-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 12px;
  color: #111827;
  /* Top border of APA table */
  border-top: 1.5px solid #111827;
  /* Bottom border of APA table */
  border-bottom: 1.5px solid #111827;
  background-color: #FFFFFF;
}

/* NO vertical borders allowed in APA style */
.apa-table th,
.apa-table td {
  border-left: none !important;
  border-right: none !important;
  padding: 7px 12px;
  text-align: left;
}

/* Header bottom border */
.apa-table th {
  font-weight: 600;
  border-bottom: 1px solid #111827;
  color: #111827;
  vertical-align: bottom;
}

/* Numeric columns right alignment */
.apa-table th.num-col,
.apa-table td.num-col {
  text-align: right;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Subtle row hover for interactive view */
.apa-table tbody tr:hover {
  background-color: #F8FAF9;
}

/* Table footnote / note */
.apa-table-note {
  font-family: var(--font-sans);
  font-size: 11px;
  color: #4B5563;
  margin-top: 6px;
  line-height: 1.4;
}

.apa-table-note strong {
  font-style: italic;
  font-weight: 600;
}
