/* Readable table cards (aitoolsense_enhance_table). Global: editorial, tool, compare and alternatives pages all render them. Tables carry no shadow (owner rule). */
.ats-table-card { margin: 2rem 0; border-radius: var(--radius-lg); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: none; overflow: hidden; }
.ats-table-card__cap { display: flex; gap: 0.55rem; align-items: flex-start; margin: 0; padding: 0.95rem 1.15rem; font-size: var(--text-sm); font-weight: 600; line-height: 1.5; color: var(--color-text-primary); border-bottom: 1px solid var(--color-border); }
.ats-table-card__cap .ats-icon { flex: none; box-sizing: content-box; width: 15px; height: 15px; padding: 5px; margin-top: -0.1rem; border-radius: 8px; background: var(--color-accent-2, #7829b4); color: #fff; }
.ats-table-card__cap, .tp-section .ats-table-card .ats-table-card__cap { align-items: center; max-width: none; width: auto; }
.ats-table-wrap { overflow: auto; max-width: 100%; max-height: min(46rem, 78vh); margin: 0; }
.ats-table-wrap:focus-visible { outline: 2px solid var(--color-accent-2); outline-offset: -2px; }
.ats-table-wrap table { width: 100%; min-width: 36rem; margin: 0; border-collapse: separate; border-spacing: 0; font-size: 0.9375rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ats-table-wrap th, .ats-table-wrap td { padding: 0.8rem 1rem; border: 0; border-bottom: 1px solid #f0edf4; text-align: left; vertical-align: middle; }
.ats-table-wrap thead th { position: sticky; top: 0; z-index: 2; background: var(--color-wash); border-bottom: 1px solid var(--color-border); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-secondary); white-space: nowrap; }
.ats-table-wrap tbody tr:nth-child(even) td { background: #fcfbfd; }
.ats-table-wrap tbody tr:hover td { background: var(--color-accent-2-soft); }
.ats-table-wrap tbody tr:last-child td { border-bottom: 0; }
.ats-table-wrap tbody td:first-child, .ats-table-wrap thead th:first-child { position: sticky; left: 0; z-index: 1; font-weight: 650; color: var(--color-text-primary); background: var(--color-surface); box-shadow: 1px 0 0 #f0edf4; }
.ats-table-wrap thead th:first-child { z-index: 3; background: var(--color-wash); }
.ats-table-wrap tbody tr:nth-child(even) td:first-child { background: #fcfbfd; }
.ats-table-wrap tbody tr:hover td:first-child { background: var(--color-accent-2-soft); }
.ats-table-wrap th.is-num, .ats-table-wrap td.is-num { text-align: right; font-weight: 650; white-space: nowrap; }
.ats-table-wrap th.ats-col-src, .ats-table-wrap td.ats-col-src { width: 5.5rem; min-width: 5rem; text-align: center; white-space: nowrap; }
@media (max-width: 640px) {
  .ats-table-card { margin: 1.6rem 0; }
  .ats-table-wrap { max-height: none; overflow: visible; }
  .ats-table-wrap table, .ats-table-wrap tbody, .ats-table-wrap tr, .ats-table-wrap td { display: block; width: 100%; min-width: 0; }
  .ats-table-wrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .ats-table-wrap tbody tr { padding: 0.6rem 0; border-bottom: 8px solid var(--color-wash); }
  .ats-table-wrap tbody tr:last-child { border-bottom: 0; }
  .ats-table-wrap tbody td, .ats-table-wrap tbody tr:nth-child(even) td { display: block; padding: 0.4rem 1rem; border: 0; background: none; text-align: left; position: static; box-shadow: none; white-space: normal; }
  .ats-table-wrap tbody td::before { content: attr(data-label); display: block; margin-bottom: 0.15rem; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--color-text-muted); }
  .ats-table-wrap tbody td:first-child, .ats-table-wrap tbody tr:nth-child(even) td:first-child { grid-template-columns: 1fr; padding-top: 0.5rem; font-size: 1rem; font-weight: 700; }
  .ats-table-wrap tbody td:first-child::before { display: none; }
  .ats-table-wrap td.is-num { text-align: left; }
  .ats-table-wrap td.ats-col-src { width: auto; text-align: left; }
}
